We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ios react-native 0.72.6 react-native-pager-view 6.2.2
The most basic setup:
const TabView = () => { const ref = useRef<PagerView>(null); const [pages, setPages] = useState<number[]>([0]); const renderPages = useMemo( () => pages.map(page => ( <View key={page} style={{flexGrow: 1, padding: 8}}> <Text style={{fontSize: 30}}>#{page}</Text> </View> )), [pages], ); return ( <> <View style={{flexDirection: 'row', justifyContent: 'space-between'}}> <Button title="Add" onPress={() => { setPages(current => [...current, current.length]); }} /> </View> <PagerView ref={ref} initialPage={0} style={{flexGrow: 1}}> {renderPages} </PagerView> </> ); };
The text was updated successfully, but these errors were encountered:
We have same issue on vertical orientation.
Sorry, something went wrong.
Fixed in #898
MrRefactor
No branches or pull requests
ios
react-native 0.72.6
react-native-pager-view 6.2.2
Screen.Recording.2023-11-14.at.19.44.08.mp4
The most basic setup:
The text was updated successfully, but these errors were encountered: