Color mode based on device settings #4361
-
Hey guys, |
Beta Was this translation helpful? Give feedback.
Answered by
kaili-kameoka
Feb 26, 2022
Replies: 1 comment
-
You can create a custom theme with a config like this:
Then, pass the custom theme in the theme prop of the Docs: https://docs.nativebase.io/color-mode If you're using expo, you may also need to modify the app.json so that the ios and android platforms have the following: "userInterfaceStyle": "automatic", |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
haibert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create a custom theme with a config like this:
Then, pass the custom theme in the theme prop of the
NativeBaseProvider
Docs: https://docs.nativebase.io/color-mode
If you're using expo, you may also need to modify the app.json so that the ios and android platforms have the following:
Docs: https://docs.expo.dev/guides/color-schemes/