react-native-pager-view
react-native-pager-view copied to clipboard
When switching tab pages, onPageSelected always executes once and the passed e.nativeEvent-position is 0
<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
If it always remains 0 after switching
#650 similar