-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix font display on Android * Format * Split out fake fonts hook for platforms
- Loading branch information
1 parent
834beac
commit 7ca1789
Showing
5 changed files
with
77 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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({ | ||
'Inter-Regular': require('../../../assets/fonts/inter/Inter-Regular.otf'), | ||
'Inter-Italic': require('../../../assets/fonts/inter/Inter-Italic.otf'), | ||
'Inter-Bold': require('../../../assets/fonts/inter/Inter-SemiBold.otf'), | ||
'Inter-BoldItalic': require('../../../assets/fonts/inter/Inter-SemiBoldItalic.otf'), | ||
'Inter-Black': require('../../../assets/fonts/inter/Inter-ExtraBold.otf'), | ||
'Inter-BlackItalic': require('../../../assets/fonts/inter/Inter-ExtraBoldItalic.otf'), | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'), | ||
}) | ||
} |