Skip to content

4x10m/coopcycle-app

 
 

Repository files navigation

CoopCycle

Build Status

Prerequisites

Install Node, Watchman & React Native CLI as described here.

Installation

Install dependencies with Yarn, and link them with React Native CLI.

$ yarn install
$ sudo gem install cocoapods

Running on Android emulator

NB: You may need to open the Android project in Android Studio before it builds.

  • Get a Google Maps API Key

A Google Maps API Key is needed at compilation time for Android (see AndroidManifest.xml).

You will need to have the Google Maps Android API service enabled.

  • Create a gradle.properties file in GRADLE_USER_HOME (defaults to ~/.gradle)

Learn more about configuring Gradle Build Environment

googleMapsApiKey=YOUR_API_KEY
  • Download Android Studio

Running on iOS emulator

NB: You may need to open the iOS project in xCode before it builds.

react-native run-ios

Testing

yarn test

Troubleshooting

« Have you tried turning it off and on again? »

watchman watch-del-all
rm -rf node_modules
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-map-react-native-packager-*
rm -rf ~/.rncache
rm yarn.lock
yarn cache clean
yarn install
react-native link

About

CoopCycle native app

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.8%
  • Objective-C 1.6%
  • Other 1.6%