Created
January 28, 2019 05:11
-
-
Save aloukissas/b63e07a4bde8e666876512d2bc345d7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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