nativewind: [v4] Appearance is broken and theme cannot be switched on the fly
Describe the bug A clear and concise description of what the bug is.
To Reproduce
Expected behavior
Using the shortcut Cmd+Shift+A changes the system theme of the iOS simulator, but the app only responds to it once, and never again until restarted. Logging useColorScheme reveals that the value does not change.
Screenshots
This is me spamming Cmd+Shift+A, you can see the blurry effect of that. The app stays in one theme, and going to the home screen, it is clear that the shortcut is working.
https://github.com/marklawlor/nativewind/assets/6837599/d0d76a77-d0c7-442a-87b0-b2d6f17b57b5
Additional context
The only thing I did in the repro was install nativewind@alpha after running npx create-expo-app@latest --template tabs@49
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 18 (8 by maintainers)
A troubleshooting step I forgot to ask - installing NativeWind is a multiple step process, Babel config, Metro Config, adding the CSS import. After which step does the project fail?