You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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: