-
Notifications
You must be signed in to change notification settings - Fork 275
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
RN 0.58 + Android target SDK 27 = Problem with orientation locker #55
Comments
I have digging down and this is problem just with RN 0.58 branch. Because combination target SDK 27 and ReactActivity extending from Activity. RN 0.59 extending from AppCompatActivity which will fix it. |
Simple working fix is disabling translucent feature <item name="android:windowIsTranslucent">true</item> to <item name="android:windowIsTranslucent">false</item> Maybe this can be noticed in Readme file. It is bug just for Android 8.0. |
I had add this notice to readme. |
Im having the same issue with RN 0.59.0 and SDK 28 |
I don't think that the version of react-native matters, I get the error also with RN 0.61.5 on android 8. I'll try @radeno solution. |
Android 8 is the problem here. The problem with @radeno solution is that it breaks the By making this fix, your splashscreen will have a white flash instead of being nice and smooth. I'll test a couple of solutions from this thread and see if I can get something to work for android 8 with splashscreen. |
Hi,
its looks like that Android by SDK 27 and up change ability to locking screen which are not fullscreen.
It is only issue when target SDK is set to 27, which is default in RN 0.58. But when is compiled with target SDK 26 it works.
Error:
Issue: java.lang.IllegalStateException: Only fullscreen activities can request orientation
Any hints how to fix it without any complex solution ? Maybe add oneliner into AndroidManifest.xml ?
Same issues in different repositories
Instabug/Instabug-Android#68
ParkSangGwon/TedPermission#63
The text was updated successfully, but these errors were encountered: