Skip to content

Instantly share code, notes, and snippets.

@aloukissas aloukissas/App.js
Created Jan 28, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.