Search code examples
react-nativemobiletailwind-css

Tailwind RN (twrnc) not responding


please, my custom styles in tailwind.config file is not working with

<View> <Text style={tw ‘border-2 border-solid b-black bg-primary-default’}> This is the style <Text> </View> Hence, the only style that is not working is my background primary default as it is set in my tailwind.config.js file.


Solution

  • You can try a more modern approach to work tailwind with react-native with nativewind. Try this - https://www.nativewind.dev/