-
Notifications
You must be signed in to change notification settings - Fork 424
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
initialPage
not working in Android (production only)
#851
Comments
I tried to update the photo gallery component to include a
In both cases, Android in production originally scrolls to the new index, but then reverts to index IMG_6716-480p.mov |
Please try running it with https://github.com/callstack/react-native-pager-view/releases/tag/v6.4.0 |
@MrRefactor Thank you for your note - like I mentioned above, expo will not run if I use a higher version because I get the |
Try running on latest main as we removed |
OK will try that - thank you for the follow up! |
I am still getting the "reset to 0 index" error on
|
Environment
react-native 0.74.5
(new architecture)expo 51.0.25
(managed)react-native-pager-view 6.3.0
(expo will not run if I use a higher version because I get theInvariant Violation: requireNativeComponent: "LEGACY_RNCViewPager" was not found in the UIManager
error).Description
I am experiencing an odd issue. I am using this package as a photo gallery viewer. I show a number of thumbnail images. When you press on one of the thumbnails, I set the
currentIndex
variable (which is passed into theinitialPage
prop of the AnimatedPagerView component). This works fine in the iOS simulator, iOS devices in production, Android simulator in Android Studio, but in Android production devices, no matter what thumbnail I press, thecurrentIndex
variable stays at 0 and loads the first image.Reproducible Demo
The text was updated successfully, but these errors were encountered: