react-native - 反应本机导航 Wix Navigation.pop 可能的未处理承诺拒绝(id:0):错误:无法执行堆栈命令
问题描述
描述
我在我的 react-native 应用程序中使用了 react-native-navigation(V2) Wix。如果弹出componentId,我会收到错误消息。
错误::
Possible Unhandled Promise Rejection (id: 0):
Error: Failed to execute stack command. Stack secondScreen not found.
Error: Failed to execute stack command. Stack secondScreen not found.
secondScreen.js
class SecondScreen extends React.PureComponent {
constructor(props) {
super(props);
this.navigationEventListener = Navigation.events().bindComponent(this);
}
componentDidDisappear() {
Navigation.pop(this.props.componentId)
}
render() {
const { handleSubmit } = this.props;
return (
<Text>SecondScreen</Text>
)
}
}
export default SecondScreen;
请告诉如何删除是警告。
解决方案
推荐阅读
- javascript - 错误**未捕获的类型错误:从 json 获取数据时无法读取未定义的属性“名词”**
- docker - Kubernetes pods 处于待处理状态
- tcl - TCL 中多个 ::math::linearalgebra::mkMatrices 的容器
- mysql - 无法在ubuntu中启动mysql
- apex - 无法在 Windows 上安装 apex
- symfony - Redis 连接(在 Doctrine 缓存中)在每个命令上都被初始化
- python - Python - Tkinter Frame 的 XY 滚动无法有效加载小部件
- reactjs - 如何在 reactjs 中做一个 READme 样式的标记?
- javascript - 如何仅在 javascript 中获得像 yyyy-mm-dd hh:mm:ss 这样的中央时间
- forms - 如果键盘类型发生变化,Flutter TextField 焦点会重建小部件