Fix font display on Android (#5776)

* Fix font display on Android

* Format

* Split out fake fonts hook for platforms
This commit is contained in:
Eric Bailey
2024-10-17 14:32:53 -05:00
committed by GitHub
parent 834beac58c
commit 7ca1789d6f
5 changed files with 77 additions and 20 deletions
+15
View File
@@ -0,0 +1,15 @@
import {useFonts} from 'expo-font'
/*
* IMPORTANT: This is unused. Expo statically extracts these fonts.
*
* All used fonts MUST be configured here. Unused fonts can be commented out.
*
* This is used for both web fonts and native fonts.
*/
export function DO_NOT_USE() {
return useFonts({
InterVariable: require('../../../assets/fonts/inter/InterVariable.ttf'),
'InterVariable-Italic': require('../../../assets/fonts/inter/InterVariable-Italic.ttf'),
})
}