-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Can not open / close drawer with swipe gesture #7536
Comments
Can you downgrade to React Navigation 0.60 and try? I think there's some issue with 0.61 and gesture handler. |
@satya164 : same with |
Same issue here, cant close drawer in Android! I am on 0.61 |
It's fixed in facebook/react-native@9f0dede and will be released in a patch release of react-native 0.61 |
still seeing the issue with react-native 0.61.1 and react-navigation 4.0.10 |
Same issue here. |
Why this is closed? This error still seeing in "react-native": "0.61.2" and "react-native-gesture-handler": "^1.4.1". Please, help us :( |
@davidcort I resolved the issue by following this : https://github.com/react-navigation/drawer/issues/105#issuecomment-534937151 |
@devashishsethia that patch exists in react-native 0.61.2. But the swipe on the drawer not works. :( |
I resolved !!! in the index.js of your project:
Works in debug, not testing in release mode. |
Confirm. In realease mode, works like a charm. 👍 |
Problem still exists on 0.61.2.. |
try this one its worked in 0.61.4 or higher... |
I had the same problem and solved it by importing react-native-gesture-handler in the root of the project:
|
In Android, you can fix it by updating the MainActivity.java file.
|
This solve the problem on android, but sometimes it is also necessary to do react-native link to make it work! |
@davidcort TKS .. :) |
Thanks |
Working. Thanks |
my application after applying that , when i touch any thing app crash |
What version of RN and React Navigation are you using? |
|
Is very extrange, in Android works very well for me, in iOS you should change the next: |
same. Solution: index.js import {AppRegistry} from 'react-native'; AppRegistry.registerComponent(appName, () => App); |
react native: 0.62.2 |
I am also having this issue on rn 0.63.3. Gesture doesn't work on Android |
I am also having this issue on react-native: 0.63.4. Gesture doesn't work on Android. |
Solution Found and Working in Android (by following https://docs.swmansion.com/react-native-gesture-handler/docs/#android) Update your MainActivity.java file import com.facebook.react.ReactActivity;
For React Native 0.61 or greater, add the library as the first import in your index.js file: import 'react-native-gesture-handler'; Before running apps--- clean using gradlew clean command . then npx react-native run-android. Just tested. |
Works fine on iOS and Android. Thank you. |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
not worked for me 🙃. |
I can open drawer with this.props.navigation.openDrawer() but can not open or close with swipe gesture. What am i doing wrong here?
App.js
dependencies
And i did the MainActivity setup
The text was updated successfully, but these errors were encountered: