Hi,
I have recently upgraded expo-font to 9.0 from 8.4… and suddently the icons did not get displayed…and get that error :
fontFamily "ionicons" is not a system font and has not been loaded through Font.loadAsync
I loaded the font at App.js like this:
const [fontsLoaded ,setFontsLoaded] = useState(false);
useEffect(() => {
// Snip
_loadFontsAsync();
}, [])
const fonts = {
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
...Ionicons.font,
};
async function _loadFontsAsync() {
await Font.loadAsync(fonts);
setFontsLoaded(true)
}
Downgrading to 8.4.0 again make it work again (without changing any code)…
What should I do to be able to upgrade to 9.0 ?
I’m on expo SDK40 on android
Thanks