constructor(props) {
super(props);
this.state = { text: '' };
}
<View style={styles.iconContainer}>
<TextInput style={styles.commentInput} maxLength={40} underlineColorAndroid='#FFFFFF'
placeholder={'Leave a comment'} onChangeText={(text) => this.setState({text})} value={this.state.text}/>
<TouchableOpacity onPress={this.addComment(text, this.props.userId)}>
<Icon style={styles.sendIcon}