react-navigation 底部導航

Installation

 

Install the react-navigation package in your React Native project.html

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:react

yarn add react-native-gesture-handler
# or with npm
# npm install --save react-native-gesture-handler

Link all native dependencies:npm

 

react-native link react-native-gesture-handler

 

 

 https://reactnavigation.org/docs/en/getting-started.htmlreact-native

 

參考:https://www.cnblogs.com/maopixin/p/10034763.htmlbash

相關文章
相關標籤/搜索