// You may do navigation.navigate.goBack(); // which is wrong navigation.goBack(); // true
onPress={() => { this.props.navigation.goBack()}}