TVke / react-native-tailwindcss

A react-native style system based on TailwindCSS
https://tvke.github.io/react-native-tailwindcss/
MIT License
565 stars 34 forks source link

How to run react-native-tailwindcss with postcss? #37

Closed zendevil closed 4 years ago

zendevil commented 4 years ago

Sorry, I'm unable to use this library! In my web tailwind projects, I usually run the postcss command on a style file that contains:

@tailwind base;

@tailwind components;

@tailwind utilities;

set the output directory, and then set the generated file as the href of a style tag in my index.html. How to exactly use react-native-tailwind?

TVke commented 4 years ago

Hi @zendevil

PostCSS is not needed and a styling file is also redundant. You can just copy and paste your tailwind config file (or generate a new one) and the styles can be used in your code. If you have any more questions, shoot 😊 The full installation setup you can find in the docs: https://tvke.github.io/react-native-tailwindcss/installation.html

Greetings Thomas