反应原生NativeBase设置

时间:2018-02-28 22:44:31

标签: react-native native-base

安装NativeBase npm install native-base --save时 我得到了这个,我的项目效果不好

npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\jest.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\jest
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\jest as it wasn't installed by E:\ReactNative\Project\node_modules\jest
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\json5.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\json5
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\json5 as it wasn't installed by E:\ReactNative\Project\node_modules\json5
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esparse.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esvalidate.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esparse as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esvalidate as it wasn't installed by E:\ReactNative\Project\node_modules\esprima

1 个答案:

答案 0 :(得分:0)

尝试更新:

I am in ViewA 
Call RequestNavigate(ViewB) -----> Show ViewB
Call RequestNavigateWithoutHistorisize(ViewC) ----> Show ViewC
Call GoBack() -------> Show ViewA

如果不起作用,请检查错误删除或编辑的文件或文件夹!

然后尝试 npm i 并重新安装......

当您想要构建清理项目并重建它时