-
Notifications
You must be signed in to change notification settings - Fork 25k
Fix RNTester system bars background when edge-to-edge is enforced #51929
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
Fix RNTester system bars background when edge-to-edge is enforced #51929
Conversation
|
@alanleedev has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.kt
Outdated
Show resolved
Hide resolved
packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.kt
Show resolved
Hide resolved
packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.kt
Outdated
Show resolved
Hide resolved
d239ad6 to
2005481
Compare
168175c to
f9615cd
Compare
|
@alanleedev Updated it, it doesn't depends on #51925 anymore. |
| resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == | ||
| Configuration.UI_MODE_NIGHT_YES | ||
|
|
||
| val color = if (isDarkMode) "#0b0600" else "#f3f8ff" |
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.
Can we use int constructor instead of converting from hex string which doesn't require conversion?
true -> Color.rgb(11, 6, 0),
false -> Color.rgb(243, 248, 255),
|
@alanleedev has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@alanleedev merged this pull request in b5be57c. |
|
This pull request was successfully merged by @zoontek in b5be57c When will my fix make it into a release? | How to file a pick request? |
Summary:
This PR fixes RNTester system bars background color to match the app one (not solid black).
Changelog:
Test Plan:
demo.mp4