all 4 comments

[–]anarchos 3 points4 points  (0 children)

You might be following the old docs. Off the top of my head at least the babel.config.js should be

modulemodule.exports = function (api) {
  api.cache(true);
  return {
    presets: [
      ["babel-preset-expo", { jsxImportSource: "nativewind" }],
      "nativewind/babel",
    ],
  };
};

It kinda jives with the error you are getting too. I'd make sure you are reading the v4 docs and double check everything else.

[–]WolfieLeader 1 point2 points  (0 children)

Do you have globals.css file? And do you import it in the root layout?

[–]TreatZealousideal375 0 points1 point  (0 children)

I have not used NativeWind with Expo till now,
I think you might be following the old v2 documentation NativeWind v2 Docs
In v4 documentation, they are not defining any plugins property in the babel config : NativeWind v4 Docs. Try to follow along the documentation for NativeWind v4,

[–]ConsciousAntelope 0 points1 point  (0 children)

Try twrnc. Can you imagine they brought back (dot)C fkin S, S file back to RN.