Skip to content

Instantly share code, notes, and snippets.

@trepidity
Created April 16, 2018 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trepidity/06bfa7805dc2c31d311ebeee38ed0f47 to your computer and use it in GitHub Desktop.
Save trepidity/06bfa7805dc2c31d311ebeee38ed0f47 to your computer and use it in GitHub Desktop.
Parsing error: Unexpected token = (at line 1)
_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
...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'),
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
}),
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment