Created
May 31, 2019 09:02
-
-
Save anchetaWern/5623b12fd32e0a032a135eae7a6c3ddb to your computer and use it in GitHub Desktop.
React Native Stream Group Chat Tutorial: Chat screen constructor
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 | |
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