React Native
When I try to go another page i keep getting this error
goToMenu(){
this.props.navigator.push({
component: Menu,
title: 'Main Menu',
passProps: {navigator: this.props.navigator},
})
}
<View style={styles.mainContainer}>
<TouchableHighlight
style={styles.menuButton}
onPress={this.goToMenu.bind(this)}>
<Text style={styles.buttonText}> Go To Menu </Text>
</TouchableHighlight>
</View>
element type is invalid expected a string (for built-in components) or a class/function for composite components but got object check render method of 'navigatorios'