react-native-pager-view icon indicating copy to clipboard operation
react-native-pager-view copied to clipboard

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

Open TallNutAlt opened this issue 1 year ago • 1 comments

<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 avatar Oct 15 '24 02:10 TallNutAlt

#650 similar

TallNutAlt avatar Oct 15 '24 02:10 TallNutAlt