marklawlor / nativewind

React Native utility-first universal design system - powered by Tailwind CSS
https://nativewind.dev
MIT License
4.3k stars 233 forks source link

ERROR fontFamily "ui-serif" is not a system font #901

Closed ebulku closed 1 week ago

ebulku commented 2 weeks ago

Describe the bug font-serif class is not working in IOS and Android Expo Go, but working properly in Web version. I am using it inside a class of Text like this:

<Text className="text-5xl font-serif text-white">
    Lorem Ipsum
</Text>

If I try to open it in Expo Go it is showing this error:

ERROR fontFamily "ui-serif" is not a system font and has not been loaded through Font.loadAsync.

  • If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.

  • If this is a custom font, be sure to load it with Font.loadAsync. ....

ebulku commented 1 week ago

I checked now the docs and it looks like it is not supported yet: https://www.nativewind.dev/tailwind/typography/font-family