This is why we play
Info
- Platform: iOS & Android
- State Management: Redux
- Code Style: Standard
- Unit Test: None, take a look at snowflake for learning
- Related Articles: Letโs drawing charts in React-Native without any library
Demonstration
Games
Players
Teams
Develop
iOS
$ npm install
$ npm run clean
react-native unsupport for .babelrc since 0.16, so you have to remove all .babelrc in your project(includes packages)$ npm start
- Open your Xcode, select a simulator, click the play button or
cmd + R
Android
- Same to official doc
$ react-native run-android
- It's a bit complicated to those who are not familiar with Android development, like me
Design
The design is made by Sketch, you can find the original design file in Dropbox, it may help if someone wants to design new features.
Run in device
iOS๏ผ
-
Check the official doc first, the following steps are based on official doc
-
Comment
console
inlib/middleware/logger.js
, because native environment doesn't support forconsole.group
-
Generate js bundle: $ react-native bundle --entry-file index.ios.js --platform ios --bundle-output ./main.jsbundle
-
Add js bundle into your project: open Xcode, select Files -> Add Files to... -> select the main.jsbundle file that just generated
-
In Xcode, select your device, then click the play button or
cmd + R
Android:
I never tried
To Be Continue
- Fix UI in Android
- Find a better way to organize css
- Unit test
License
MIT