【发布时间】:2019-11-28 09:19:25
【问题描述】:
谁能给我解释一下navigate这个词在下面的例子中的错误
userByEmail(this.state.Email, navigate) // we call userByEmail ans pass email, but what does navigate do?
我知道我们是在从 screenProps 内部的 auth 导入/(解构 this.props)方法 createUser? navigation: {navigate}} 是什么,它只是导航道具吗?
const {screenProps: {auth: {createUser}}, navigation: {navigate}} = this.props
最后这两者有什么区别
this.props.navigation.navigate('Calendar')
navigate('Calendar')
【问题讨论】:
标签: javascript reactjs react-native navigation