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
Don't ask for overlay permissions, fix displaying errors on splashscreen. RN >= 0.52 #2801
Conversation
krystofcelba
commented
Mar 1, 2018
•
edited
edited
- Don't ask for overlay permissions on RN >= 0.52 as it is not needed according to this commit.
- Fix that redbox with error don't get displayed if there isn't yet any react activity, instead use the SplashActivity.
In RN >= 0.52 the current activity is used to display redbox and other dev things instead of SYSTEM_ALERT_WINDOW so it's not needed to ask permission there.
Return SplashActivity If there is not yet any react activity so the redbox gets displayed if error occurs.
Can one of the admins verify this patch? |
I can confirm that this patch fixes the dev menu overlay on Android 8 |
Thank you for this fix @krystofcelba ! Works well :) |
Any update on this? |
Any updates? +1 |
Any updates on this please ? |
How can I pull your fix for now? I am stuck on this. |
@91ranjan A bit hacky but we added this to our postinstall:
And just get the patch from here https://github.com/wix/react-native-navigation/pull/2801.patch |
@Iamsamwhoami Thanks for the response. This fixed the issue for the red screen to appear. But still, there is an issue with "react-native-gesture-handler" which is where I came from. Since for react-native-navigation, I have to extend SplashActivity. The function in gesture library that we have to override doesn't work. This is specified in 'https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html'
Some error like Please let me know how can I resolve this issue. I have raised the concern with react-native-gesture-handler as well:- software-mansion/react-native-gesture-handler#128 UPDATE Is there a work around for this? |
@guyca Any update? |
instered in not asking overlay api for v2 aswell |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Let us alone stupid bot ! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any update here before this stupid bot close the PR? |
Will address this soon. |
@Iamsamwhoami I can't get your command to work. I've googled and tried everything but when I run the command with Only |