fontFamily "material" is not a system font when using Expo
See original GitHub issueEnvironment
Expo SDK 35 react-native-paper 2.16.0
Description
Trying to use react-native-paper components in an expo project, I receive the error “fontFamily “material” is not a system font and has not been loaded through Font.loadAsync.”. The docs state that when using expo, there is no need to install vector-icons as it is prepackaged with expo, so I am not sure where the issue lies. I see an open issue for this dating back to earlier this year with no definitive solution but suggesting to load the fonts via await Font.loadAsync({ 'MaterialIcons': require('@expo/vector-icons/fonts/MaterialIcons.ttf') })
, but I do not have a fonts directory under vector-icons.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
Expo: fontFamily 'SimpleLineIcons' is not a system font and ...
The simple-line-icons that i loaded in only worked for iOS and so on Android i got this error: fontFamily 'SimpleLineIcons' is not a...
Read more >fontFamily "material" is not a system font and has not ... - GitHub
To fix it, I just ran yarn remove expo-font and then ran expo install expo-font . Using expo to install rather than yarn...
Read more >Custom fonts - Expo Documentation
If you don't want to use a custom font, your best bet is to use the platform's default font by not specifying a...
Read more >[Solved]-font family materialicon not system font-React Native
font family materialicon not system font · React Native - Expo: fontFamily 'SimpleLineIcons' is not a system font and has not been loaded...
Read more >font.loadasync not working
fontFamily 'Feather' is not a system font and has not been loaded through Expo.Font.loadAsync. If you intended to use a system font, make...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I hit a similar issue with
Font.loadAsync()
after upgrading to Expo SDK 35 (and 34). The fix for me was to:rm -rf node_modules
package-lock.json
npm install
Hi, I am facing the same issue. I tried removing and reinstalling node_modules; however, it did not work for me