jaredh159 / tailwind-react-native-classnames

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

No support for spacing? #289

Closed stesvis closed 8 months ago

stesvis commented 8 months ago

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

stesvis commented 8 months ago

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

jaredh159 commented 8 months ago

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).