iOS: Font with family name 'F7A7BDA3-­DCC5-40DC-­A34F-E487F­47EB8C9-io­nicons' already loaded

Hi,

I’m getting this error on iOS after downgrading to sdk 31:

Font with family name ‘F7A7BDA3-­DCC5-40DC-­A34F-E487F­47EB8C9-io­nicons’ already loaded

The app is still able to run but all the icons are missing. On Android, though, everything works well.
I had to downgrade because of a bug (unrelated) in sdk 32 and before that, I did not have the above error in sdk 31. Here’s what it looks like in Index.js

import { Ionicons } from '@expo/vector-icons';
import { Font } from 'expo';

async componentDidMount() {
    const fontAssets = this.cacheFonts([Ionicons.font]);
    await Promise.all([fontAssets]);
    await Font.loadAsync({
        Roboto: require('native-base/Fonts/Roboto.ttf'),
        Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
    });
    this.setState({ fontsAreLoaded: true });
}

cacheFonts(fonts) { return fonts.map((font) => Font.loadAsync(font)); }

then

if (!fontsAreLoaded) {
    return <AppLoading />;
}

return (
    <Provider store={store}>
        <Main />
    </Provider>
);

Running on "expo": "^31.0.0" and "@expo/vector-icons": "^8.0.0",
Any ideas ?

Sorry for upping this but i’m really at a loss here.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.