only load relevent fonts for each platform

This commit is contained in:
Samuel Newman
2026-01-09 14:13:09 +02:00
parent 7285157ab5
commit a21ecd0466
+6 -1
View File
@@ -278,10 +278,14 @@ module.exports = function (_config) {
[ [
'expo-font', 'expo-font',
{ {
ios: {
fonts: [ fonts: [
'./assets/fonts/inter/InterVariable.woff2', './assets/fonts/inter/InterVariable.woff2',
'./assets/fonts/inter/InterVariable-Italic.woff2', './assets/fonts/inter/InterVariable-Italic.woff2',
// Android only ],
},
android: {
fonts: [
'./assets/fonts/inter/Inter-Regular.otf', './assets/fonts/inter/Inter-Regular.otf',
'./assets/fonts/inter/Inter-Italic.otf', './assets/fonts/inter/Inter-Italic.otf',
'./assets/fonts/inter/Inter-Medium.otf', './assets/fonts/inter/Inter-Medium.otf',
@@ -292,6 +296,7 @@ module.exports = function (_config) {
'./assets/fonts/inter/Inter-BoldItalic.otf', './assets/fonts/inter/Inter-BoldItalic.otf',
], ],
}, },
},
], ],
[ [
'expo-splash-screen', 'expo-splash-screen',