Skip to content

Instantly share code, notes, and snippets.

@edencakir
Created March 4, 2017 12:59
Show Gist options
  • Save edencakir/d670fbb4b5b2f36062a167b050fe7d43 to your computer and use it in GitHub Desktop.
Save edencakir/d670fbb4b5b2f36062a167b050fe7d43 to your computer and use it in GitHub Desktop.
render() {
if (this.state.loading) {
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
<ActivityIndicator style={{marginTop: -60}} size="large"/>
</View>
)
}
return (
<View style={styles.container}>
<ListView
enableEmptySections={true}
renderRow={this.renderRow.bind(this)}
dataSource={this.state.dataSource} />
<YouTubeWebView ref={r => this.youtubePlayer = r}/>
</View>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment