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

Some utilities classes of tailwind not works in NativeWind V4 #898

Open
hamidradical opened this issue Apr 30, 2024 · 3 comments
Open

Some utilities classes of tailwind not works in NativeWind V4 #898

hamidradical opened this issue Apr 30, 2024 · 3 comments

Comments

@hamidradical
Copy link

I am using latest version of expo with expo-router and due to expo router i had to installed nativewind for support of expo router.

And i also use react native paper. here below tailwind css not works.

`import { Card, TextInput, Button } from 'react-native-paper';

<Button
// style={{ borderRadius: 4 }}
className='bg-emerald-900 text-green-400 rounded-none'
icon="login"
mode="contained"
onPress={() => router.push('/summary')}>
LOGIN
`

this className='bg-emerald-900 text-green-400 rounded-none' style works on nativewind v2.0.x.

And your work for nativewind v4 is so great.

@verifund-admin
Copy link

I'm having the same issue. Can you check what your output file looks like at ./node_modules/.cache/nativewind/global.css? I'm only seeing a handful of utility classes being defined. For example, I only have py-3 utility class defined, therefore that's the only style that works when running locally.

When I deploy to prod, it seems to be working fine though.

@Darren120
Copy link

related? #883

@galenom
Copy link

galenom commented May 24, 2024

related? #883

Appear so but no follow up on that one either.

I'm noticing the same thing but not sure why tailwind only generates partial utilities

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

4 participants