-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting dark mode in the browser results in
undefined
being added as a class instead ofdark
. This happens both when usingcolorScheme.toggle()
,colorScheme.set("dark")
and methods fromuseColorScheme
. 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
The text was updated successfully, but these errors were encountered: