Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async preloadAssets() {
await AssetUtils.cacheAssetsAsync({
// fonts: this.fonts,
files: this.files,
// audio: this.audio,
});
this.setState({ loading: false });
}
async preloadAssets() {
await AssetUtils.cacheAssetsAsync({
fonts: this.fonts,
files: this.files,
audio: this.audio,
});
await AudioManager.sharedInstance.setupAsync();
this.setState({ loading: false });
}
downloadAsync = async () =>
AssetUtils.cacheAssetsAsync({
files: [...AssetUtils.arrayFromObject(this.assets)],
});
async preloadAssets() {
await AssetUtils.cacheAssetsAsync({
fonts: this.fonts,
files: this.files,
audio: this.audio,
});
this.setState({ loading: false });
}