mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-06 22:46:01 +08:00
docs: update README to mention reanimated and gesture-handler
This commit is contained in:
@@ -6,12 +6,24 @@ Drawer navigator for use on iOS and Android.
|
||||
|
||||
## Installation
|
||||
|
||||
Open a Terminal in your project's folder and run,
|
||||
Open a Terminal in the project root and run:
|
||||
|
||||
```sh
|
||||
yarn add react-navigation-drawer@alpha
|
||||
```
|
||||
|
||||
If you are using Expo, you are done. Otherwise, continue to the next step.
|
||||
|
||||
Install and link [`react-native-gesture-handler`](https://github.com/kmagiera/react-native-gesture-handler) and [`react-native-reanimated`](https://github.com/kmagiera/react-native-reanimated). To install and link them, run:
|
||||
|
||||
```sh
|
||||
yarn add react-native-reanimated react-native-gesture-handler
|
||||
react-native link react-native-reanimated
|
||||
react-native link react-native-gesture-handler
|
||||
```
|
||||
|
||||
**IMPORTANT:** There are additional steps required for `react-native-gesture-handler` on Android after running `react-native link react-native-gesture-handler`. Check the [this guide](https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html) to complete the installation.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user