- SDK Version: 34
- Platforms(Android/iOS/web/all): iOS
Hi,
I’m trying to publish a iOS version and have serveral layout issues to fix, but can’t really figure out why fonts are not being loaded by iOS.
I’m using Montserrat and Montserrat Bold from Google Fonts. But they should be compiled pretty well i guess?
https://fonts.google.com/specimen/Montserrat?selection.family=Montserrat:400,700
I’m using code like this in my App.js file:
async function loadResourcesAsync() {
await Promise.all([
Asset.loadAsync([
require('./assets/images/splash.png'),
require('./assets/images/icon.png'),
]),
Font.loadAsync({
...Ionicons.font,
'montserrat-regular': require('./assets/fonts/Montserrat-Regular.ttf'),
'montserrat-bold': require('./assets/fonts/Montserrat-Bold.ttf'),
}),
]);
}
Best,
Andy