only load relevent fonts for each platform
This commit is contained in:
+6
-1
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user