Async is for losers ... it's a promise, so just implement then
and head out to dinner. :)
componentDidMount () {
Font.loadAsync({
'open-sans-bold': require('./assets/fonts/OpenSans-Bold.ttf'),
}).then(() => this.setState({fontLoaded: true}))
}
Run code
source
to share