Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_loadResourcesAsync = async () => {
// TODO: Decide if we need to remove
// the linking listener somewhere
console.info("Adding deep linking listener");
this._addLinkingListener();
await this._getInitialUrl();
return Promise.all([
Asset.loadAsync([
require("./assets/images/robot-dev.png"),
require("./assets/images/robot-prod.png")
]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Icon.Ionicons.font,
// We include SpaceMono because we use it in HomeScreen.js. Feel free
// to remove this if you are not using it in your app
"space-mono": require("./assets/fonts/SpaceMono-Regular.ttf")
})
]);
};
_handleLoadingError = error => {
public loadResourcesAsync = async () => {
return Promise.all([
Asset.loadAsync([RobotDev, RobotProd]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Icon.Ionicons.font
// We include SpaceMono because we use it in HomeScreen.js. Feel free
// to remove this if you are not using it in your app
})
]);
};
_loadResourcesAsync = async () => {
this.apolloClient = await setupApolloClient();
return Promise.all([
Asset.loadAsync([
require('./assets/images/buymeacoffee-logo.png'),
require('./assets/images/youtube-logo.png'),
require('./assets/images/brain.png')
]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Icon.Ionicons.font,
// We include SpaceMono because we use it in HomeScreen.js. Feel free
// to remove this if you are not using it in your app
'space-mono': require('./assets/fonts/SpaceMono-Regular.ttf'),
Menlo: require('./assets/fonts/Menlo-Regular.ttf')
})
]);
};
_loadResourcesAsync = async () =>
Promise.all([
Font.loadAsync({
// This is the font that we are using for our tab bar
...Icon.Ionicons.font,
// Feel free to remove this if you are not using it in your app
'open-sans-bold': require('./assets/fonts/OpenSans-Bold.ttf'),
'open-sans-regular': require('./assets/fonts/OpenSans-Regular.ttf'),
}),
]);
_loadResourcesAsync = async () => {
return Promise.all([
Asset.loadAsync([
require('./assets/images/robot-dev.png'),
require('./assets/images/robot-prod.png')
]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Icon.Ionicons.font,
// We include SpaceMono because we use it in HomeScreen.js. Feel free
// to remove this if you are not using it in your app
'space-mono': require('./assets/fonts/SpaceMono-Regular.ttf'),
'montserrat-bold': require('./assets/fonts/Montserrat-Bold.ttf'),
'montserrat-italic': require('./assets/fonts/Montserrat-Italic.ttf'),
'montserrat-regular': require('./assets/fonts/Montserrat-Regular.ttf')
})
]);
};
_loadResourcesAsync = async () => {
return Promise.all([
Asset.loadAsync([
require('./assets/images/bugsnag.png'),
]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Icon.Ionicons.font,
// We include SpaceMono because we use it in HomeScreen.js. Feel free
// to remove this if you are not using it in your app
'space-mono': require('./assets/fonts/SpaceMono-Regular.ttf'),
}),
]);
};
loadLocalAsync = async () => {
return await Promise.all([
Asset.loadAsync([
require('../assets/flame.png'),
require('../assets/icon.png')
]),
Font.loadAsync({
...Icon.Ionicons.font
})
])
}