Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
austinm911 opened this issue Apr 25, 2024 · 1 comment
Open

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

austinm911 opened this issue Apr 25, 2024 · 1 comment

Comments

@austinm911
Copy link

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
Copy link

GustavoBonfimS commented May 5, 2024

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';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants