In DrawerLayout component when drawerPosition property is set to Right the Drawer behavior is wrong due to:
The drawer behavior must be same as when the drawerPosition property is set to Left:
Demo Project:
https://drive.google.com/open?id=1DT086RShAASE4_lx3kzGbWfr9hTPl9uV
| software | version
| ---------------- | -------
| react-native-gesture-handler | 1.0.15
| react-native | 0.58.4
| compileSdkVersion | 28
| supportLibVersion | 28.0.0
I have the same issue...do you solve it?
Hi @adawi9, I had fixed it by momentarily updating the file:
node_modules \ react-navigation-drawer \ dist \ views \ DrawerView.js.
you must replace the DrawerLayout component with DrawerLayoutAndroid.
I tested it only on Android and it's working.
Can you share the updated file with me to replace it on my project
Yes, the mentioned file is:
DrawerView.zip
The file must be located in the following path:
Your project\node_modules\react-navigation-drawer\dist\views\DrawerView.js
Yeah it is working now...thanks dear...I think the team of react-native-gesture-handler and react-navigation must fix it...I attached a file to handle android and iOS
DrawerView.js.zip
Yes, I have the same problem. The edgeWidth prop is ignored when the sidebar is set to Right.
any update on this using react-navigation v3?
I just updated to react-native-gesture-handler: "1.2.1" and it solved the buggy drawer behavior.
Can confirm that >1.2.1 fixed it for me. I'm currently on 1.3.0 and it's working perfectly. This could probably be closed.
I will close it as @Aidurber suggests, if that's still an issue please comment to reopen
Most helpful comment
I just updated to
react-native-gesture-handler: "1.2.1"and it solved the buggy drawer behavior.