Getting
undefined is not an object (evaluating '_this3.props.navigation')
error while click on TouchableOpacity.
render() {
List = this.state.availableList.map(function(demo){
return(
<View key={(exam, index) => index.toString()} >
<TouchableOpacity
onPress={() => this.props.navigation.navigate('BCD')} >
<View>
<Text>{demo.Name}</Text>
<Text>{demo.Address}</Text>
</View>
</TouchableOpacity>
</View>
);
});
return (
<View>
{List}
</View>
);
}
in map(function()) this.props.navigation not getting so my question is how to pass props ?