- react-native-cli: 0.2.0
- react-native: 0.28.2
- Xcode 7.3+
- Android Studio 2.1+
To run your app on iOS:
cd Yingping
react-native run-ios
or Open Yingping/ios/Yingping.xcodeproj in Xcode Hit the Run button
To run your app on Android:
Have an Android emulator running (quickest way to get started), or a device connected
cd Yingping
react-native run-android
- app
- actions (redux action)
- components (主要界面以及自定义控件)
- constrants (常量组)
- containers (redux 容器)
- reducers (redux 处理器)
- resourses (可以放资源,例如字体)
- storage (持久化数据,可以是cache或者database)
- style (目录内的
global-style.js
放公共的样式)
- 控件可以去react.parts或者js coach找
- 优先选择标记的,能同时兼容两个端
iPhone
Android