Why nativewind v4? #89
-
Currently, I'm using NativeWind v2 in my project, but I came across this library. I was wondering why there is a need for NativeWind v4, as it is unreleased and still in development? Are there any breaking changes from v2 to v4? |
Beta Was this translation helpful? Give feedback.
Answered by
mrzachnugent
Mar 4, 2024
Replies: 2 comments
-
The main reason is CSS variables. CSS variables allow us to set colours for light and for dark mode and facilitates theming. You can find the other advantages here: NativeWind v4 Announcement |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mrzachnugent
-
Okay, makes sense. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The main reason is CSS variables.
CSS variables allow us to set colours for light and for dark mode and facilitates theming.
You can find the other advantages here: NativeWind v4 Announcement