Skip to content
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

When switching tab pages, onPageSelected always executes once and the passed e.nativeEvent-position is 0 #888

Open
TallNutAlt opened this issue Oct 15, 2024 · 1 comment

Comments

@TallNutAlt
Copy link

<PagerView ref={pageViewRef} initialPage={pageViewRefIndex.current} offscreenPageLimit={1} onPageSelected={e => handlePageSelected(e)}

    HandlePageSelected is always executed every time the page is switched, and passing an index of 0 results in the inability to retain the state of an option selected by the tab user

image
If it always remains 0 after switching

@TallNutAlt
Copy link
Author

TallNutAlt commented Oct 15, 2024

#650
similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant