feat: simplify installation instructions

This commit is contained in:
Brent Vatne
2019-09-03 16:29:43 -07:00
parent 1c36bbb323
commit 0c6b66236b

View File

@@ -8,23 +8,7 @@ Tab navigators for React Navigation.
## Installation
Open a Terminal in the project root and run:
```sh
yarn add react-navigation-tabs
```
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.
Follow the instructions on the [the React Navigation "Getting Started" guide](https://reactnavigation.org/docs/en/getting-started.html), and then add the `react-navigation-tabs` package to your project.
## Usage