Skip to content

Instantly share code, notes, and snippets.

@anchetaWern
Created May 31, 2019 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchetaWern/5623b12fd32e0a032a135eae7a6c3ddb to your computer and use it in GitHub Desktop.
Save anchetaWern/5623b12fd32e0a032a135eae7a6c3ddb to your computer and use it in GitHub Desktop.
React Native Stream Group Chat Tutorial: Chat screen constructor
// src/screens/Chat.js
constructor(props) {
super(props);
const { navigation } = this.props;
this.user_id = navigation.getParam('user_id');
this.username = navigation.getParam('username');
this.user_token = navigation.getParam('user_token');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment