Skip to content
New issue

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

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

Already on GitHub? # to your account

Nativewind not working in expo #556

Closed
grandwaterman opened this issue Sep 14, 2023 Discussed in #555 · 3 comments
Closed

Nativewind not working in expo #556

grandwaterman opened this issue Sep 14, 2023 Discussed in #555 · 3 comments

Comments

@grandwaterman
Copy link

grandwaterman commented Sep 14, 2023

Discussed in #555

Originally posted by grandwaterman September 14, 2023
Followed the doc https://www.nativewind.dev/quick-starts/expo.

The three steps, and it is NOT working. and checking the example on Github, it is very different from the doc.

Got error: Use process(css).then(cb) to work with async plugins

package.json - dep
"dependencies": {
"autoprefixer": "^10.4.15",
"expo": "~49.0.10",
"expo-status-bar": "~1.6.0",
"nativewind": "^2.0.11",
"postcss": "^8.4.29",
"react": "18.2.0",
"react-native": "0.72.4",
"tailwindcss": "^3.3.3"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},

Are postcss and autoprefixer needed?

Document quality -1

@3ddelano
Copy link

Its solved here #500

@kevingrondin
Copy link

kevingrondin commented Oct 10, 2023

use this :

"dependencies": {
"autoprefixer": "^10.4.15",
"expo": "~49.0.10",
"expo-status-bar": "~1.6.0",
"nativewind": "^2.0.11",
"postcss": "^8.4.29",
"react": "18.2.0",
"react-native": "0.72.4",
"tailwindcss": "3.3.2"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},

@marklawlor
Copy link
Collaborator

Closing in favour of pinned issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants