Replies: 2 comments 1 reply
-
|
Use useUnistyles hook. It won't rerender your app as react navigation is optimized for that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm doing this, but everywhere else I switch my adaptive theme (within the StyleSheet), the transition of colors from dark mode to light mode is smooth. But in my navigation bars where I'm consuming theme colors for tint and background color via <Stack screenOptions={{
headerTintColor: theme.colors.text,
contentStyle: { backgroundColor: theme.colors.background },
}}> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not quite sure how to conditionally load my React Navigation theme based on the theme provided by Unistyles. How are people implementing that?
Beta Was this translation helpful? Give feedback.
All reactions