NativeWind will not work in my appliacation

249 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 answers

0
Mohaimen Khalid 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
Abdul On

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