jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No support for spacing?

stesvis opened this issue · comments

It appears that there is no support for spacing, for example this throws a warning:

<View style={tw`space-y-3`}>
  <Text>First text</Text>
  <Text>Second text</Text>
</View>

and the warning is WARN `space-y-3` unknown or invalid utility

Basically I am looking for these:
https://tailwindcss.com/docs/space

Found that as an alternative I can use gap-3 and it works.

glad you figured that out. space-{dir}-{n} utilities aren't supported because they only work in a web context, and this library only supports RN native (non-web).