Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async componentWillMount() {
await Font.loadAsync({
// 'Ionicons': require('native-base/Fonts/Ionicons.ttf'),
...Ionicons.font,
...FontAwesome.font,
...AntDesign.font,
'Font-Light': require('./app/assets/fonts/Montserrat-Light.ttf'),
'Font-Regular': require('./app/assets/fonts/Montserrat-Regular.ttf'),
'Font-Semibold': require('./app/assets/fonts/Montserrat-SemiBold.ttf'),
'Font-Bold': require('./app/assets/fonts/Montserrat-Bold.ttf'),
});
this.setState({isReady: true});
}