Skip to content

Instantly share code, notes, and snippets.

@aloukissas
Created January 28, 2019 05:11
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 aloukissas/b63e07a4bde8e666876512d2bc345d7a to your computer and use it in GitHub Desktop.
Save aloukissas/b63e07a4bde8e666876512d2bc345d7a to your computer and use it in GitHub Desktop.
render() {
if (!this.state.isSplashReady) {
return (
<AppLoading
startAsync={this.loadSplashResources}
onFinish={() => this.setState({ isSplashReady: true })}
autoHideSplash={false}
/>
);
}
if (!this.state.isAppReady) {
return (
<View style={{ flex: 1 }}>
<Image
source={require("./assets/images/splash.png")}
onLoad={this.loadAppResources}
/>
</View>
);
}
return (
<View style={{ flex: 1 }}>
<Text>Welcome to the app!</Text>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment