-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for Nativewind v4 Alpha #17
Comments
This is easy to implement on your own, though native support would be great for v4. I'm not sure how third party components integrate now with nativewind. import { Motion } from "@legendapp/motion";
import { remapProps } from "nativewind";
export const View = remapProps(Motion.View, { className: "style" });
export const Pressable = remapProps(Motion.Pressable, { className: "style" });
// ... motion components |
I would definitely like to support nativewind v4. We've been using it in our apps with v2 for a while but I think we should upgrade it to v4. I haven't had a chance to dig into the API changes yet, but it looks like we just need to change |
I just released version 2.4.0 which changes the peerDependency to * so it should work for nativewind v4. A major difference in v4 is that nativewind doesn't have So it probably doesn't affect you if you're using gluestack, but if you're using legend-motion with nativewind v4 directly, you don't need to import from "@legendapp/motion/styled". I'll update the docs about that soon. |
Hi! I came across a dependency issue in my project whilst installing gluestack-ui for nativewind. Your package supports
"nativewind": "^2.0.0"
but the latest version isnativewind": "4.0.36
.The text was updated successfully, but these errors were encountered: