Skip to content

wanmigs/react-native-tailwind

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

âš¡ React Native Tailwind âš¡

The fantastic Tailwind CSS, for React Native!
Credit to Taylor Bryant for originally translating the classes over to RN.

npm version

Getting started

1. Install the package

yarn install react-native-tailwind

2. Import the components

import { View, Text } from 'react-native-tailwind'

3. Use utility classes!

const RocketShip = ({ textForAliens }) => (
  <View className="flex-1 items-center justify-center bg-grey-darkest">
    <Text className="text-white p-4">{textForAliens}</Text>
  </View>
)

To see which classes are supported, see tailwind.js.


License

MIT

About

Functional CSS classes for React Native 💘

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.3%
  • HTML 1.7%