You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
observation:
colors don't react to the device theme.
[5] try changing your device theme then reloading from dev menu.
observation:
colors change & respect the device theme after reload.
[6] removing uiMode from android:configChanges inside inside AndroidManifest.xml does resolve the issue however it's performant ( the application would then be torn down and recreated with the theme change ).
Snack, code example, screenshot, or link to a repository
Description
PlatformColor on android does not pickup the correct color on theme changes as it does on IOS.
it's worth mentioning that
useColorSchemedoes pick up the device theme correctly.Jan-02-2022.13-37-48-android-issue.mp4
Version
66.4
Output of
npx react-native infoSteps to reproduce
after creating a react native project.
[1] create a
values-night/colors.xmlandvalues/colors.xmlinsideandroid/app/src/main/res[2] add both dark mode and light mode colors to both
colors.xmlfiles accordingly.[3] rebuild the app.
[4] change your device theme from settings
observation:
colors don't react to the device theme.
[5] try changing your device theme then reloading from dev menu.
observation:
colors change & respect the device theme after reload.
[6] removing
uiModefromandroid:configChangesinside insideAndroidManifest.xmldoes resolve the issue however it's performant ( the application would then be torn down and recreated with the theme change ).Snack, code example, screenshot, or link to a repository
https://github.com/a-eid/platformColorAndroidIssue