Skip to content

Instantly share code, notes, and snippets.

@peterpme peterpme/loading.js
Created Apr 18, 2018

Embed
What would you like to do?
LOADING
class InfoScreen extends React.PureComponent {
render() {
if (this.props.loading) return <ActivityIndicator />
return (
<View style={styles.container}>
<Text>Hi</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.