skip to Main Content

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

Answers


  1. 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.

    Login or Signup to reply.
  2. Yes you missed post css file and missed to include css file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search