NativeWind will not work in my appliacation

266 Views Asked by At

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. here is the tilwind.config.js file

balbel.config.js homescreen App.js path dependecies

2

There are 2 best solutions below

0
On

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.

0
On

Yes you missed post css file and missed to include css file