jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2.03k stars 82 forks source link

`container` utility is not working #286

Closed yushanwebdev closed 6 months ago

yushanwebdev commented 6 months ago

I'm receiving the following warning from Expo 50:

container unknown or invalid utility

Is it not supported here?

jaredh159 commented 6 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 6 months ago

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

jaredh159 commented 6 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