Is there anyway to use the view as button? Im kinda clueless of what Im doing.
return (
<View style={styles.container}>
<View style={styles.vicon} onClick={() => this.props.navigation.navigate('MessageScreen')}>
<Image source={require('../misc/icon1.png')} style={styles.iicon} />
</View>
<View style={styles.vtexts} onClick={() => this.props.navigation.navigate('MessageScreen')}>
<Text style={styles.tname}>{this.state.name}</Text>
<Text style={styles.tmessage}>{this.state.message}</Text>
</View>
</View>
);
this is me so far. I need to use the view as a button to redirect to the messageScreen. Hope someone can help me. Thanksss