Created
October 11, 2017 10:59
-
-
Save ayberkanilatsiz/e0f84288d851e02aa6b3908ee40e6de9 to your computer and use it in GitHub Desktop.
app render func
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() { | |
const { userId, isReady } = this.state; | |
if(!isReady){ | |
return this.renderUsernameView(); | |
} | |
return ( | |
<GiftedChat | |
messages={this.state.messages} | |
onSend={this.onSend} | |
onPressAvatar={ (user)=> alert(user.name)} | |
user={{ | |
_id: userId, | |
}} | |
/> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment