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
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 the Invariant 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 the initialPage 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, the currentIndex variable stays at 0 and loads the first image.
I tried to update the photo gallery component to include a useEffect to call setPage when the gallery is open (isOpen === true) and the currentIndex changes. I also used a setTimeout to try and delay the setPage until the Modal opens with the PagerView in it:
@MrRefactor Thank you for your note - like I mentioned above, expo will not run if I use a higher version because I get the Invariant Violation: requireNativeComponent: "LEGACY_RNCViewPager" was not found in the UIManager error
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: