Create-react-native-app: Need a common font abstraction between vanilla React Native & Expo

Created on 19 Mar 2017  路  3Comments  路  Source: expo/create-react-native-app

Thank you for this excellent tool.

As many React Native UI libraries come bundled with custom fonts (or require them to be present), would it be possible to include an easy way to supply the fonts? E.g. a specific folder at the root of the project whose content would be loaded and linked appropriately to the target device?

underlying tools

Most helpful comment

Reopening as tracking issue for building this hypothetical font API.

All 3 comments

Hello there! This is possible already using the Expo Font API: https://docs.expo.io/versions/v15.0.0/guides/using-custom-fonts.html - check out an example of it here: https://github.com/brentvatne/custom-font-example

@dikaiosune and I are considering building a version of this that isn't tied to Expo at all so you can eject from CRNA without going to ExpoKit and not have to change your font loading code at all.

Reopening as tracking issue for building this hypothetical font API.

@brentvatne - curious why this issue was closed? I just ejected from CRNA and expo to regular react native and now all of my fonts are broken. It would be really handy to have a better solution than "do it all over again once you eject" ... :-) I can help if you can give me some suggestions!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iRoachie picture iRoachie  路  5Comments

mwq27 picture mwq27  路  5Comments

FezVrasta picture FezVrasta  路  3Comments

jckuhl picture jckuhl  路  4Comments

Palisand picture Palisand  路  5Comments