0
当我尝试去另一页我不断收到此错误
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>
元素类型无效预期字符串(内置组件)或复合组件的类/函数,但得到对象检查'navigatorios'的渲染方法
'Menu'组件有问题,你能附上它的代码吗? – Cherniv