jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2.08k stars 84 forks source link

`container` utility is not working #286

Closed yushanwebdev closed 8 months ago

yushanwebdev commented 8 months ago

I'm receiving the following warning from Expo 50:

container unknown or invalid utility

Is it not supported here?

jaredh159 commented 8 months ago

we only support the subset of tailwindcss utilities that directly map to React Native non-web style props. Another way of saying that, is we don't support React-Native Web. So utilities like container I believe have no counterpart in pure native RN, so the library doesn't support them.

yushanwebdev commented 8 months ago

ah okay, @jaredh159. Thank you. Is there documentation available on the supported Tailwind CSS utilities?

jaredh159 commented 8 months ago

this file has some info on supported utilities, although it mostly focuses on what RN supports, not on what we don't cover because it's web-only:

https://github.com/jaredh159/tailwind-react-native-classnames/blob/master/supported-utilities.md