Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Native Stream Group Chat Tutorial: Initialize Stream chat
// src/screens/Chat.js
async componentDidMount() {
showUsersModal: this.showUsersModal
try {
const user = await client.setUser(
id: this.user_id,
name: this.username,
image: `${this.username}`,
// next: add channel member
// next: subscribe to channel
} catch (err) {
console.log("error: ", err);
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.