【发布时间】:2017-09-04 18:04:39
【问题描述】:
我有 ComponentOne,它是 ComponentTwo 的父级。 然后我有 ComponentThree 和 ComponentFour。 问题是我可以轻松地在 ComponetOne 到 ComponentThree 和 ComponentFour 之间导航,但是我无法从 ComponentTwo 中的按钮导航,它是 ComponentOne 的子级,我在 React Native 中使用 Stack Navigation, 错误:评估(this.props.navigator)未定义不是对象
我尝试在 ComponentTwo 的不同位置声明 const {navigator},但似乎没有任何帮助 帮助将不胜感激。 :)
【问题讨论】:
-
没有任何代码很难帮助
标签: javascript android reactjs native