Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created November 19, 2019 15:09
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 amandeepmittal/aad581dbf63a3c16a1c0f3f957620382 to your computer and use it in GitHub Desktop.
Save amandeepmittal/aad581dbf63a3c16a1c0f3f957620382 to your computer and use it in GitHub Desktop.
render() {
const { loading } = this.state
if (loading) {
return (
<View
style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<ActivityIndicator size='large' />
</View>
)
}
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.headerText}>Headlines App</Text>
</View>
<View style={styles.contentContainer}>
<Text>Open up App.js to start working on your app!</Text>
</View>
</View>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment