I'm currently using uniwind in my expo project.
I have a specific requirement where a screen needs to always be in Dark Mode, regardless of the theme settings.
I know that the underlying library, react-native-unistyles, provides a component to handle exactly this. However, I'm unsure how to achieve this strictly within the uniwind context.
I tried forcing the theme using setTheme inside a useFocusEffect, but that’s not a viable solution because:
It triggers a visible transition/flicker.
It changes the theme globally for the whole app, not just scoped to the screen's children.
Has anyone managed to scope a theme to a single view/screen using Uniwind?
Thanks!
I'm currently using uniwind in my expo project.
I have a specific requirement where a screen needs to always be in Dark Mode, regardless of the theme settings.
I know that the underlying library, react-native-unistyles, provides a component to handle exactly this. However, I'm unsure how to achieve this strictly within the uniwind context.
I tried forcing the theme using setTheme inside a useFocusEffect, but that’s not a viable solution because:
It triggers a visible transition/flicker.
It changes the theme globally for the whole app, not just scoped to the screen's children.
Has anyone managed to scope a theme to a single view/screen using Uniwind?
Thanks!