RN项目构建 (二)
添加路由依赖库
1 | yarn add @react-navigation/native @react-navigation/stack @react-navigation/bottom-tabs |
1 | yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view |
安装完依赖库后, cd ios
然后再安装Native相关依赖, cocoapods
执行如下
1 | pod install |
导入依赖库, 发现react
以及react-native
库时报错
1 | npm i --save-dev @types/react |
- 本文作者: 醉疏狂
- 本文链接: https://hubin97.github.io/2022/06/16/RN项目路由相关/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!