I tried using NativeWind in my app, but I can’t figure out why it’s not working. I attempted to target my .js file, but it didn’t work. I even deleted the node_modules and reinstalled them, but it didn’t make any difference.
2
Add postcss.config.css
and paste it, then try again
module.exports = { plugins: [require("tailwindcss"), require("nativewind/postcss")], }; module.exports = { plugins: { "nativewind/postcss": { output: "nativewind-output.js", }, }, };
Then import output (js) file into App.js like this –
import "./nativewind-output";
Hope it will work it.
Yes you missed post css file and missed to include css file
Click here to cancel reply.
2
Answers
Add postcss.config.css
and paste it, then try again
Then import output (js) file into App.js
like this –
Hope it will work it.
Yes you missed post css file and missed to include css file