Replies: 2 comments 5 replies
-
It's actually pretty straightforward. When you create a new react native library using For your library, you will want to add For your example app (and any apps you will install this library in the future), you will want to follow the installation steps of native wind and make sure it's installed correctly. Also make sure your library and the example app (and any apps you will use the library in the future) has the same versions of native wind. As far as I understand, the crucial step of running native wind is adding it's babel plugin to your app. You don't need to do this inside your library. Just make sure you add this plugin to your app and you should be good to go. |
Beta Was this translation helpful? Give feedback.
-
I have same issue but with NativeWind 4, does anyone know how to configure NW 4 to work in this setup? seems the correct styles are getting generated inside node_modules/.cache/ but the styles are not being applied to components coming from published package. I have configured tailwind.config as shown in example provided by @atlj above. |
Beta Was this translation helpful? Give feedback.
-
I use react-native-builder-bob to write shared components for multiple projects, now I want to use https://www.nativewind.dev/ to style the component. Can you guide me to integrate https://www.nativewind.dev/
Beta Was this translation helpful? Give feedback.
All reactions