-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android][LogBox] Set windowTranslucentNavigation to false #29399
Conversation
This fixes facebook#29397. Without this, apps that specify `android:windowTranslucentNavigation` draw the `LogBox` buttons underneath the soft navigation bar, making the buttons unpressable.
Base commit: 6ffb983 |
Base commit: 6ffb983 |
Error messages end up drawing below the navigation bar, which makes the buttons hard to press. My PR facebook/react-native#29399 should fix this. We can revert this commit once we upgrade to a version of React Native that has merged that PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdvacca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, importing to land
@mdvacca, I presume something went wrong with the land... is there any way I can help? Failing test cases? |
Everything looks good, this is landing now. @Ashoat once this lands, do you want to put a pick request in for 0.63 here: react-native-community/releases#200? |
Yeah, will do! |
This pull request was successfully merged by @Ashoat in 23036b3. When will my fix make it into a release? | Upcoming Releases |
Summary: This fixes #29397. Without this, apps that specify `android:windowTranslucentNavigation` draw the `LogBox` buttons underneath the soft navigation bar, making the buttons unpressable. Before | After :-------------------------:|:-------------------------: <img src="http://ashoat.com/AndroidTranslucentNavigationLogBox.png" width="300" /> | <img src="http://ashoat.com/AndroidTranslucentNavigationLogBoxFixed.png" width="300" /> ## Changelog [Android] [Fixed] - Set LogBox windowTranslucentNavigation to false Pull Request resolved: #29399 Test Plan: I tested this change on the [repo](https://github.com/Ashoat/LogBoxTest) I set up to reproduce the issue. I set it up to [build `ReactAndroid` from source](Ashoat/LogBoxTest@3a2cdab) and then edited `node_modules/react-native/ReactAndroid/src/main/res/devsupport/values/styles.xml` directly. Reviewed By: rickhanlonii Differential Revision: D22602970 Pulled By: mdvacca fbshipit-source-id: 8c2adc149aa0157825075022f00bb695956d3121
Summary
This fixes #29397. Without this, apps that specify
android:windowTranslucentNavigation
draw theLogBox
buttons underneath the soft navigation bar, making the buttons unpressable.Changelog
[Android] [Fixed] - Set LogBox windowTranslucentNavigation to false
Test Plan
I tested this change on the repo I set up to reproduce the issue. I set it up to build
ReactAndroid
from source and then editednode_modules/react-native/ReactAndroid/src/main/res/devsupport/values/styles.xml
directly.