sidevesh/react-native-snackbar-component

Not working with react-native-elements: fontFamily "space-mono" is not a system font and has not been loaded through Font.loadAsync.

5ervant opened this issue · 2 comments

I'm seeing this error on my Android emulator upon using react-native-snackbar-component, no problem when viewing my application on the web:

fontFamily "space-mono" is not a system font and has not been loaded through Font.loadAsync.

- If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.
- If this is a custom font, be sure to load it with Font.loadAsync.
- node_modules\react-native\Libraries\YellowBox\YellowBox.js:59:8 in error
- node_modules\expo\build\environment\muteWarnings.fx.js:27:24 in error
- ... 33 more stack frames from framework internals

It seems react-native-snackbar-component have a conflict with react-native-elements' <Header /> component. The error is gone upon reinstalling react-native-elements alone but came back upon installing react-native-snackbar-component.

It's literally an issue while you install react-native-snackbar-component with Expo. I'm using Yarn, so I'd solved the problem by running these after installing react-native-snackbar-component:

yarn
expo r -c