You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
After some trials, I found that this issue occurs only when there is any value of "paddingHorizontal", "paddingLeft", "paddingRight", "marginHorizontal", "marginLeft", or "marginRight" on FlatList(or any component in the Scene containing FlatList) with props "removeClippedSubviews=true". It's really weird, but it does. Please solve this bug..
This is not caused by this library, the prop removeClippedSubview is just buggy. This issue is also happening on simple tabs without animated tab view.
Pros: This reduces time spent on the main thread, and thus reduces the risk of dropped frames, by excluding views outside of the viewport from the native rendering and drawing traversals.
Cons: Be aware that this implementation can have bugs, such as missing content (mainly observed on iOS), especially if you are doing complex things with transforms and/or absolute positioning. Also note this does not save significant memory because the views are not deallocated, only detached
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior
When I switched tab using swipe, or tab button, the content is (Flatlist) not shown until scrolled vertically.
demo video :
watch since 20s. issue occurs randomly in second or third tab. (third tab in this video)
screen-capture.mp4
Expected behavior
The content should be shown immediately after switched tab index.
Reproduction
https://snack.expo.dev/@ikoru/react-native-tab-view---not-shows-flatlist-until-scroll
Platform
Environment
The text was updated successfully, but these errors were encountered: