-
-
Notifications
You must be signed in to change notification settings - Fork 985
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
Bug with permissions dialog and position #386
Comments
thanks for putting effort into this issue! unfortunately I'm still having a hard time understanding because it feels like there are two issues together here.
|
@brentvatne Thanks for your reply.
Please test my repo RNGH-DrawerLayout-Bug |
@brentvatne the bug when drawer is closed and is visible behind the alert, don't occur with useNativeAnimations set in false. |
cc @kmagiera ^ |
@ahce, I don't want to change |
@brentvatne @osdnk I found an easier way to reproduce the bug. Check my repo RNGH-DrawerLayout-Bug (dependencies updated to the latest). |
I am experiencing the same problem (using react-native-navigation 3.3.2 + react-native-gesture-handler 1.1.0). My app navigates to a new screen and checks some Android permissions after mounting the screen component.
The drawer appears behind the android action dialog although it should not be visible at all. |
@sign2k Can you test this DrawerLayout? |
Tested it - seems not to help in my case. I replaced the offical "DrawerLayout.js" with your file. |
I've also got an app that requests permissions after navigating to a screen and it opens the drawer while the permission dialog is up. |
I'm having this issue too. Should the |
What is the fix for this? This is still an issue. |
I faced the same issue "the drawer appears behind the android action dialog" with "react-native-gesture-handler": "^1.2.0" and "react-navigation": "3.2.0" but some devices works and some are not. Not sure where it come from, please help |
Same problem here as of rn 0.61, rngh 1.4.1 |
thanks |
useNativeAnimations:false works, not the best, other solutions? |
same here, any ideas? useNativeAnimation:false is not an option for us |
Fixes #386. `AnimatedInterpolation` was causing problems on Android when the activity was paused for some reason (like permission or share dialog). For some reason it was changing its value on pause, opening the drawer, and again on resume closing the drawer. This PR changes `DrawerLayout` so that it uses constant value instead of interpolation when the drawer is idle.
Description
Steps
Result
Note
This bugs don't occur with react-native-drawer-layout-polyfill.
In the demo, comment and uncomment the imports for switch the drawers.
Environment
Demo
RNGH-DrawerLayout-Bug
The text was updated successfully, but these errors were encountered: