react-native-gesture-handler: App crash right away
The app is crashing right away on Android in the latest version (v1.5.5)
java.lang.IllegalStateException: View com.swmansion.gesturehandler.react.RNGestureHandlerRootView{be07dec V.E… …ID 0,0-1080,2022 #12f} has not been mounted under ReactRootView
$ react-native info
info Fetching system and libraries information… System: OS: macOS 10.15.3 CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 252.45 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.16.3 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 29 Build Tools: 29.0.2 System Images: android-29 | Google APIs Intel x86 Atom_64 IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild npmPackages: react: 16.12.0 => 16.12.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1 react-native-rename: 2.4.1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 12
- Comments: 15 (2 by maintainers)
same issue here, happened after migrating to
rn-0.61.5
UPD. got fixed by downgrading to
1.4.0
i changed createAnimatedSwitchNavigator to createSwitchNavigator then the issue was skipped, I think it was relative with createAnimatedSwitchNavigator
it happened to me also, android crashed after navigate to new page with createAnimatedSwitchNavigator (react-navigation)
Got the same issue using v1.6.1 React-navigation v4 and react native 0.63
Affect v1.5.5 to v1.6.1. with rn-0.62.2 and React-Navigation v4. v1.5.4 cannot be bundled in metro.