简体   繁体   English

使用堆栈导航来响应本机

[英]React Native with Stack Navigation

I created stack navigation successfully, but after some days it doesn't work :( I run in the cmd: 我成功创建了堆栈导航,但几天后它不起作用:(我在cmd中运行:

npm install --save react-navigation
npm install --save react-native-gesture-handler
react-native link
npm install

but get the following errors: enter image description here 但出现以下错误: 在此处输入图片描述

I think you are useing react-native-navigation v2 or you forgot to import createApp container. 我认为您使用的是react-native-navigation v2,或者您忘记了导入createApp容器。

I recommend you to execute below commands rm -rf node_modules; 我建议您执行以下命令rm -rf node_modules; watchman watch-del-all; 守望者 npm i; and do "Erase all contents and settings" in your simulator. 并在模拟器中执行“清除所有内容和设置”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM