react-native-simple-project
一個簡單的工程(只為展示基本的寫法)
關(guān)鍵點(diǎn):push隱藏tabBar,更改導(dǎo)航欄標(biāo)題
整體流程:
index.ios.js
-------------->Navigator
-------------->react-native-tab-navigator(第三方)
-------------->Home頁(或Setting頁)
-------------->react-native-navbar(第三方) + Home頁視圖(或Setting頁視圖)
- Clone the repo
$ git clone https://github.com/BelinChung/react-native-hiapp.git
$ cd react-native-hiapp
- Install dependencies (npm v3+):
$ npm install
- Start Packager:
$ npm start
- Running on iOS:
$ react-native run-ios
內(nèi)部集成了react-native-navbar和react-native-tab-navigator,如果相關(guān)地方報(bào)錯請執(zhí)行以下命令
$ npm install react-native-navbar
$ npm install react-native-tab-navigator
里面關(guān)鍵性的注釋已經(jīng)寫上。有不明白的地方或?qū)懙貌划?dāng)?shù)牡胤秸埣観Q 767616124 歡迎大家交流。
效果圖:

RN.gif