marklawlor / nativewind

React Native utility-first universal design system - powered by Tailwind CSS
https://nativewind.dev
MIT License
4.3k stars 233 forks source link

V4: Not able to get text-color to work #892

Open austinm911 opened 3 weeks ago

austinm911 commented 3 weeks ago

Describe the bug I'm new to RN and expo. I init a new tabs template and added v4 Nativewind, but can't get text-color to work (see index.ts).

If i replace app with __app in the src folder, it works fine it seems (this is the example from the expo repo).

I'm not sure if there's a bunch of boilerplate code that comes with the tabs template that breaks certain tailwind classes with v4.

Reproduction https://github.com/austinm911/nativewindv4

GustavoBonfimS commented 1 week ago

I did this and it worked:

Install nativewind@canary remove __app folder in src/app/_layout.tsx replace css import, from import "@/global.css" to import '../global.css';