RN 0.61 Release Build - 'Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched
See original GitHub issueHello I’m encoutering app crashes during release mode on both, iOS and Android after RN 0.60 to 0.61 upgrade.
I’m enclosing error from xCode console:
2019-10-04 08:56:06.922 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched
2019-10-04 08:56:06.924 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched
2019-10-04 08:56:06.926353+0200 eks_golf_ng[5301:1138125] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched', reason: 'Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched, stack:
extractEvents@171:13016
<unknown>@171:13807
_e@171:89649
ke@171:13544
Re@171:13717
receiveEvent@171:14132
value@56:3662
<unknown>@56:764
value@56:2868
value@56:736
value@<null>:<null>
'
*** First throw call stack:
(0x197f41c30 0x197c5c0c8 0x1006f575c 0x100767644 0x197f48724 0x197e11280 0x197e11e90 0x100728190 0x10072a2a0 0x10072a004 0x100fe1e48 0x100fe32a8 0x100fea938 0x100feb528 0x100ff64e8 0x197c4eaa0 0x197c54c78)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Does anyone encounter same issue? I will do my best to add reproducible demo ASAP.
Thank you so much for any help!
"react-native": "0.61.2",
"react-native-gesture-handler": "^1.4.1",
"react-native-reanimated": "^1.3.0",
"react-native-redash": "^8.1.2",
"react-native-screens": "^2.0.0-alpha.3",
"reanimated-bottom-sheet": "^1.0.0-alpha.14",
Issue Analytics
- State:
- Created 4 years ago
- Reactions:35
- Comments:24
Top Results From Across the Web
ios - Unsupported top level event type ...
A drawer is working properly in Android and iPhone 5S. But, when I ran the app in iPhone X, it's throw error when...
Read more >BottomSheet | React Native AMA
AMA Provides an accessible bottom sheet built on top. ... the following error: Unsupported top level event type "onGestureHandlerStateChange" dispatched.
Read more >error invariant violation: "main" has not been registered. this ...
However, I was facing this problem when trying to run it on macos using npx react-native run-macos and after this was solved, I...
Read more >rctfatalexception: unhandled js exception
... exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched', ...
Read more >React Native错误以及解决方案 - 简书
... Unhandled JS Exception: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched”崩溃错误。
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve opened a new issue before research and I’m so sorry for that…
I added
at top of
index.jsfile as suggested in #320 and it works now 😸I love those kind of magic fix, it ensures me that no one will ever take my place in the company, thank you again for that. Please do not ever document this.