You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I initially noticed this bug in my app on a real device, and it didn’t reproduce on the simulator.
However, with the example app, it was reproduced on both a real device and the simulator.
This issue occurs when using setPage in pager-view to navigate pages with animation.
If the layout size (e.g., height) of the pager-view component changes, content becomes uncontrollable within the pager-view, and further page navigation becomes impossible.
The issue does not occur when using the setPageWithoutAnimation method.
Additionally, I found that if the width and height of the pager-view are fixed, this issue does not occur.
It seems that the iOS native UI component might break due to container layout changes—just a shallow guess.
Video (iPhone 15 real device)
Build the example app.
Go to the Keyboard Example menu.
Touch the TextInput to show the keyboard.
Press the Next page button.
Then you can’t interact with anything inside the pager-view or navigate to the previous page. However, you can still exit the navigation screen.
reproducer-react-native-pager-view.mov
Reproducible Demo
The reproduction code is based on the library’s example app. (link)
It is almost the same as the example app code.
The keyboard interaction is an indirect cause; it was used because it easily triggers view height changes.
The text was updated successfully, but these errors were encountered:
Environment
react-native-pager-view version 6.3.0, 6.5.1
I initially noticed this bug in my app on a real device, and it didn’t reproduce on the simulator.
However, with the example app, it was reproduced on both a real device and the simulator.
my local dev environment
Description
This issue occurs when using
setPage
in pager-view to navigate pages with animation.If the layout size (e.g., height) of the pager-view component changes, content becomes uncontrollable within the pager-view, and further page navigation becomes impossible.
The issue does not occur when using the
setPageWithoutAnimation
method.Additionally, I found that if the width and height of the pager-view are fixed, this issue does not occur.
It seems that the iOS native UI component might break due to container layout changes—just a shallow guess.
Video (iPhone 15 real device)
Keyboard Example
menu.Next
page button.reproducer-react-native-pager-view.mov
Reproducible Demo
The reproduction code is based on the library’s example app. (link)
It is almost the same as the example app code.
The keyboard interaction is an indirect cause; it was used because it easily triggers view height changes.
The text was updated successfully, but these errors were encountered: