Leanote's Blog
I love Leanote!
Toggle navigation
Leanote's Blog
Home
Chrome
Git
Linux
Windows
Others
工具大全
VsCode
Expo
Html
JavaScript
Npm
Node
Mock
React-Native
React
TypeScript
小程序
插件
正则
Dva
Ant-Design-React
Umi
Vue
Vux
Ant-Design-Vue
Http
Java
flutter
开发小工具
About Me
Archives
Tags
react-native使用react-navigation
2019-11-14 07:46:18
292
0
0
admin
## 安装: > yarn add react-navigation 然后安装 `react-native-gesture-handler` ,如过你正在使用 `Expo` ,那么你可以跳过此步骤,因为他包含在SDK中,否则 > yarn add react-native-gesture-handler > react-native link ## <span color="red" data-mce-style="color: red;" style="color: red;">如果报以下错误(**注**: 以下错误是http://localhost:8081/debugger-ui/里查看到的, 如果没有的话, 就是手机一片红报错的)</span>: 1. > error: bundling failed: Error: Unable to resolve module `react-native-gesture-handler` from `D:\react-native\mapDemo\nod e_modules\@react-navigation\native\src\Scrollables.js`: Module `react-native-gesture-handler` does not exist in the Hast e module map <span color="blue" data-mce-style="color: blue;" style="color: blue;">解决</span>: ### `React Native Gesture Handler`是什么? `React Native Gesture Handler`是`Expo`公司推出的一个库,目的是替代`React Native`自带的 `Gesture Responder System`。 ### `React Native Gesture Handler`可以带来等多的手势操作和更好的性能,因为它使用了各个平台原生的`touch handling system` 来处理手势 > yarn add react-native-gesture-handler > react-native link react-native-gesture-handler 2. `DeltaPatcher should receive a base Bundle when being initialized` <span color="blue" data-mce-style="color: blue;" style="color: blue;">解决</span>: 查看pakeage.json里是否安装了`react-navigation-redux-helpers`, 该软件包允许用户从`Redux`中管理其`React Navigation`状态, 如果没有就安装 > yarn add react-navigation-redux-helpers
Pre:
react-native使用笔记
Next:
MapBox(可自定义, 开源)
0
likes
292
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.