Font trouble with expo 16


#1

After following the instructions for upgrading to Expo 16, I was eventually able to get everything working, including FlatList.

However when I tried to use react-native-elements tags (which worked fine before), I got the following error: “fontFamily 'Material Icons” is not a system font and has not been loaded through Exponent.Font.loadAsync"

same error when trying to use the tag from react-native-vector-icons, except about ‘Font Awesome’.

Any ideas? Thanks!
chris


#2

fixed this by explicitly loading the fonts according to instructions here: https://docs.expo.io/versions/v8.0.0/guides/using-custom-fonts.html


#3

Hi,

I am new to Expo/React Native. Do I need to load font at top level/main component or at component which will be using that particular font. ?

Thanks,
CK


#4

you need to use babel-preset-expo