- React Native (follow iOS and Android guides)
- Xcode 8.1 +
- CocoaPods (only for iOS)
- Version 1.0+ recommended (
gem install cocoapods --pre
)
- Clone the repo
$ git clone https://github.com/digithun/clogii-mobile.git
$ cd clogii-mobile
- Install dependencies (npm v3+):
$ npm install
$ (cd ios; pod install) # only for iOS version
- Start Parse/GraphQL servers:
$ npm run dev
Make sure everything works by visiting:
- Parse Dashboard: http://localhost:8080/dashboard
- GraphiQL: http://localhost:8080/graphql
- Running on Android:
$ react-native run-android
$ adb reverse tcp:8081 tcp:8081 # required to ensure the Android app can
$ adb reverse tcp:8080 tcp:8080 # access the Packager and GraphQL server
- Running on iOS:
$ react-native run-ios
- Could not connect to development server
In a separate terminal window run:
$ react-native start
- Alert invalid session token
Delete the app from the simulator or your phone, then rebuild and re-run the app. Sometimes an old token gets cached.