Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dark class toggle not working on web #882

Open
vktrl opened this issue Apr 16, 2024 · 1 comment
Open

dark class toggle not working on web #882

vktrl opened this issue Apr 16, 2024 · 1 comment

Comments

@vktrl
Copy link

vktrl commented Apr 16, 2024

Setting dark mode in the browser results in undefined being added as a class instead of dark. This happens both when using colorScheme.toggle(), colorScheme.set("dark") and methods from useColorScheme. It works fine on native.

I haven't found a way to reliably replicate this behavior. I've moved code verbatim from one repo to another but it's inconsistent. The only clue I have is that the class being set is undefined, but I haven't tracked down the potential cause in the codebase and I'm not very familiar with RN. For now I'm handling the class toggle manually.

PNPM monorepo
Nativewind 4.0.36
Tailwind 3.4.1

@AchrafBn
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants