Created
March 4, 2017 12:59
-
-
Save edencakir/d670fbb4b5b2f36062a167b050fe7d43 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.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