android: fix navigation bar always being bright even in dark mode (#3464)

Right now both light mode and dark mode get light navigation bar, and
looks jarring in the dark modes.

This commit applies a more appropriate color before the UI thread
runs (in app config), as well as applying the current theme background
after the UI shell is mounted.

This should fix #3332.

Co-authored-by: Hailey <me@haileyok.com>
This commit is contained in:
Kisaragi Hiu 2024-04-13 07:40:22 +09:00 committed by GitHub
parent c3821fdc31
commit cefa0a55e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 0 deletions

View file

@ -11962,6 +11962,14 @@ expo-modules-core@1.11.12:
dependencies:
invariant "^2.2.4"
expo-navigation-bar@~2.8.1:
version "2.8.1"
resolved "https://registry.yarnpkg.com/expo-navigation-bar/-/expo-navigation-bar-2.8.1.tgz#c4152f878d9fb6ca74c90b80e934af76c29b5377"
integrity sha512-aT5G+7SUsXDVPsRwp8fF940ycka1ABb4g3QKvTZN3YP6kMWvsiYEmRqMIJVy0zUr/i6bxBG1ZergkXimWrFt3w==
dependencies:
"@react-native/normalize-color" "^2.0.0"
debug "^4.3.2"
expo-notifications@~0.27.6:
version "0.27.6"
resolved "https://registry.yarnpkg.com/expo-notifications/-/expo-notifications-0.27.6.tgz#ef7c95504034ac8b5fa360e13f5b037c5bf7e80d"