can't get to work NativeWind for Expo Mobile and Web
Hi, I've been trying the whole day to achieve this.
I've installed NativeWind, followed the guide (https://www.nativewind.dev/quick-starts/expo) and it worked for mobile but not for web. So, after playing a while with webpack and postcss, I managed to get it work, but then it stopped working for mobile.
If I import the stylesheet, it works for web but not for mobile. If I don't, it works the other way around (i think).
Adding
solved the problem, but this is a workaround for Expo SDK <=45, as stated in the docs. I'd love to make it work the intended way
Expo | NativeWind
A example of an Expo project can be found on Github
3 Replies
package.json
babel.config.js
postcss.config.js
tailwind.config.js
webpack.config.js
style.css
App.js (final version)
If I can share something more, please tell me, I've been thinking about it all day long and I can't figure it out
I would honestly just not use web for this
and stick to mobile
make a seperate nextjs site for web
That would be a nice suggestion actually, but it seems weird that it doesn't work like it's supposed to...