-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gap between header and content if lazy === true #19
Comments
@PedroBern Is there any solution to fix this issue, using lazy={true} is necessary if we don't want to load all the data until user really visits that tab. |
@Janak-Nirmal as I wrote above:
|
Current behavior
<CollapsibleTabView lazy ...>
do not sync scroll position of unmounted routes, as expected, because the routes are unmounted! But, when the routes are mounted, may start with a gap between the header and the content.Expected behaviour
When mounting the lazy routes, they should know the header position and start with the correct scroll position.
Workaround
The current workaround is to handle the laziness by yourself. What actually can be a good thing, since the lazy prop of
react-native-tab-view
is pseudo-lazy. It loads all routes if you click on the last tab!The text was updated successfully, but these errors were encountered: