Please provide the following:
- SDK Version: 35
- Platforms(Android/iOS/web/all): iOS & Android
I just upgraded from SDK 34 to 35 and I am getting the following error:
[Unhandled promise rejection: TypeError: asset.downloadAsync is not a function. (In 'asset.downloadAsync()', 'asset.downloadAsync' is undefined)]
- node_modules\expo-font\build\Font.js:99:10 in _loadSingleFontAsync$
etc
This is being called in my App.js:
import * as Font from 'expo-font'
import { Asset } from 'expo-asset'
async _loadResourcesAsync() {
await AsyncStorage.getAllKeys().then(keys => {
console.log(keys)
});
try {
await Promise.all([
I18n.initAsync(),
Font.loadAsync({
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
'font awesome': require('@expo/vector-icons/FontAwesome'),
})
])
} catch (e) {
errorOccurred(e);
}
this.setState({appIsReady: true})
}
Has anyone run into this issue? I have tried deleting my node_modules and clearing my cache, deleting package-lock.json.
It seemed like this issue was opened before but not really solved: asset.downloadAsync is not a function