Skip to content
This is why we play
Objective-C JavaScript Other
Branch: master
Clone or download

Latest commit

Latest commit f0cdfca Jan 23, 2016

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android Android for game page Jan 23, 2016
app Use AsyncStore for cross platform Jan 23, 2016
assets/img Android for game page Jan 23, 2016
ios Use AsyncStore for cross platform Jan 23, 2016
.flowconfig Upgrade to compatible with Android Jan 23, 2016
.gitignore Init Nov 28, 2015
.watchmanconfig
LICENSE
README.md Update README Jan 23, 2016
circle.yml Clean and detail design Dec 1, 2015
index.android.js Upgrade to compatible with Android Jan 23, 2016
index.ios.js User defaults library Dec 12, 2015
package.json

README.md

This is why we play

js-standard-style Circle CI

group

Info

Demonstration

Games

game game_android

Players

player player_android

Teams

team team_android

Develop

iOS

  1. $ npm install
  2. $ npm run clean react-native unsupport for .babelrc since 0.16, so you have to remove all .babelrc in your project(includes packages)
  3. $ npm start
  4. Open your Xcode, select a simulator, click the play button or cmd + R

Android

  1. Same to official doc
  2. $ react-native run-android
  3. 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:

  1. Check the official doc first, the following steps are based on official doc

  2. Comment console in lib/middleware/logger.js, because native environment doesn't support for console.group

  3. Generate js bundle: $ react-native bundle --entry-file index.ios.js --platform ios --bundle-output ./main.jsbundle

  4. Add js bundle into your project: open Xcode, select Files -> Add Files to... -> select the main.jsbundle file that just generated

  5. In Xcode, select your device, then click the play button or cmd + R

Android:

I never tried

To Be Continue

  1. Fix UI in Android
  2. Find a better way to organize css
  3. Unit test

License

MIT

You can’t perform that action at this time.