Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!isLoaded && !isLoading) {
startLoad()
const imageAssets = cacheImages([
require('../../assets/images/all-games-wallpaper.png'),
require('../../assets/images/arrow.png'),
require('../../assets/images/arrows.png'),
require('../../assets/images/giantbomb-logo.png'),
require('../../assets/images/icon.png'),
])
const fontAssets = cacheFonts([
Ionicons.font,
MaterialCommunityIcons.font,
MaterialIcons.font,
Octicons.font,
{
'florentia-extralight': require('../../assets/fonts/florentia.extralight.ttf'),
'arista-pro-extralight': require('../../assets/fonts/arista-pro-extralight.ttf'),
'let-that-be-enough-regular': require('../../assets/fonts/let-that-be-enough.regular.ttf'),
}
])
await Promise.all([
...imageAssets,
...fontAssets,
])
endLoad()
}
}