Use TailwindCSS with React Native

Use TailwindCSS with React Native

Hello Everybody welcome back to Aayush Biswas's Blog today we will be learning how to add TailwindCSS in React Native

So first of all let us install the package by running the command. Make sure you have nodejs installed

npm i tailwind-react-native-classnames

then import tailwind in the file you want to add by adding this line on top of the file

import tw from 'tailwind-react-native-classnames';

To add classes to Blocks write style like this

style={tw`tailwind-classes`}

for more refernce visit the npm package