react-navigation 底部導航
阿新 • • 發佈:2019-04-05
Installation
Install the react-navigation
package in your React Native project.
yarn add react-navigation # or with npm # npm install --save react-navigation
Next, install react-native-gesture-handler. If you’re using the Expo managed workflow then you don’t need to do anything here, it’s included in the SDK. Otherwise:
yarn add react-native-gesture-handler
# or with npm
# npm install --save react-native-gesture-handler
Link all native dependencies:
react-native link react-native-gesture-handler
https://reactnavigation.org/docs/en/getting-starte