Skip to content

Uniwind ScopedTheming missing? #300

@bastischulz

Description

@bastischulz

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions