I tried with t.fontSans, t.fontSerif, t.fontMono, they show the same font. Also tried to add a custom font, as described here, but is not working.
Also, the fix used in #14 didn't work for me. The command npx RNtailwindcss is failing (cp: cannot stat '../react-native-tailwindcss/stubs/defaultConfig.stub.js': No such file or directory), so I created the config file with npx tailwind init --full .
I could configure custom a fontSize and colors, but fontFamily is not working at all.
I tried with
t.fontSans
,t.fontSerif
,t.fontMono
, they show the same font. Also tried to add a custom font, as described here, but is not working.Also, the fix used in #14 didn't work for me. The command
npx RNtailwindcss
is failing (cp: cannot stat '../react-native-tailwindcss/stubs/defaultConfig.stub.js': No such file or directory
), so I created the config file withnpx tailwind init --full
.I could configure custom a
fontSize
and colors, butfontFamily
is not working at all.This is how I have my fontFamily config:
The custom fonts are working properly using react-native
StyleSheet
.