Zaiqiuchang(在球场) is a mobile app developed using react native, both iOS and Android are supported. This open source project is just the lite version of the app. You can install the full version to see the power of react native.
Package | Description |
---|---|
react-native | Bridge to native. |
react | Build ui component. |
redux | Manage ui state. |
react-native-navigation | Screen navigation. |
react-native-code-push | Online upgrade app without submitting to app store. |
react-native-image-crop-picker | Pick image and video from album, or taken from camera. |
react-native-video | Play video. |
react-native-vector-icons | Display icon. |
First you sholud make sure React Native is already installed.
> git clone git@github.com:jaggerwang/zqc-app-demo.git && cd zqc-app-demo
> npm install
> react-native run-ios # or run-android
As we already did react-native link
for native code, so there is no need to do this again.
Notice! After installed dependent packages, you should fix some known issues manually, otherwise you will encounter compile errors. Do as section Known issues.
Please follow the official doc Generating Signed APK.
react-native-navigation
After npm install
, you need to check react-native-navigation version by cat node_modules/react-native-navigation/package.json
. If the version is not like "2.0.0-experimental.*", reinstall it by npm i react-native-navigation@2.0.0-experimental.266 -S
.