-
-
Notifications
You must be signed in to change notification settings - Fork 955
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
Unsupported top level event type "onGestureHandlerStateChange" dispatched #439
Comments
I have same issue with:
I did put import 'react-native-gesture-handler' on top of index.js but it's doesn't work :( |
Version |
@kmagiera Can we get a status or an update about this issue? |
cc @osdnk |
I'm experiencing this exception on iOS while navigating back in StackNavigator using swipe or back button. Other React Navigation users also suffered from this issue and seems that most of them go with downgrade: react-navigation/react-navigation#5208 Only three commits has been added between |
Hello, could you please assure that you're actually requiring RNGH on very top level of your app. I mean you could add some |
Hello all! Thanks for reporting the issue, however in the future it would be much easier for us to address your problems quicker, if you help us and prepare a small repo that reproduces the problem. I went ahead to try it and started new project with RN 0.58.4 and GH 1.0.15 (similar setup to what @musicode posted) here https://github.com/kmagiera/GHBug439 – apparently the problem cannot be reproduced there. It makes sense to try @osdnk suggestion and add the following code to your main javascript file (e.g. usually it is
Gesture handler lib requires that parts of the library code runs on load time (specifically even registration code that is the reason why you're seeing the crash). |
rel #320 |
I have testes the newest version with an Example app on If you face with a problem please attach an example with newest version of RN and RNGH and deterministic steps to observe the case. |
For what it's worth, I've just upgraded from RN Prior to that, it occurred anytime I used any version of RNGH > EDIT: I should add that the error happened to me when navigating to a new screen in a ( |
Issue is still occurring with RN EDIT: |
Just facing the same problem in 0.59.0 when i turn on inlineRequires in metro.config.js which introduced in react native 0.59.0. After i change inlineRequires to false, everything works fine. But inlineRequires off can causes slower app launches. Looking forward the answer which can turn on inlineRequires without conflicting react-native-gesture-handler. |
same issue as @tikkichan4 on RN 0.59 and |
Closing in favor of #320. |
OS: ios
RN version: 0.58.3
RNGH version: 1.0.15
The text was updated successfully, but these errors were encountered: