Created
May 31, 2019 09:08
-
-
Save anchetaWern/01bcde8d045b99c4829d360b11201a59 to your computer and use it in GitHub Desktop.
React Native Stream Group Chat Tutorial: Send message
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
// src/screens/Chat.js | |
onSend = async ([message]) => { | |
const response = await this.channel.sendMessage({ | |
text: message.text | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment