Closed periakteon closed 2 months ago
I had a similar issue, I updated Nativewind to 4.0.36 and issue was solved. Give it a try!
I had a similar issue, I updated Nativewind to 4.0.36 and issue was solved. Give it a try!
That's what I came to write! Thanks..
For some reason this error occurs if you're on the 4.1 version of nativewind. Seems like a regression?
In v. 4.1.6 It works fine.
Describe the bug When I want to change the theme using the
ThemeToggle
component, I get the following error:TypeError: react_native_css_interop_1.StyleSheet.getFlag is not a function (it is undefined), js engine: hermes
To Reproduce Steps to reproduce the behavior:
ThemeToggle
component wherever you wantExpected behavior The theme should change smoothly.
Screenshots
https://github.com/user-attachments/assets/97300852-4384-467c-87ef-6ec216d7f111
Platform:
Additional context
/app/_layout.tsx: