CuriousEdinburgh2

University of Edinburgh project developing a platform independent app for guided walking tours of sites of scientific and cultural interest in and around Edinburgh.

2
1
JavaScript

Curious Edinburgh

Travis status

Prerequisites

Install

npm install 

Run

To run app on connected device or simulator:

Run React Native Packager

npm start

Android

npm run react-native run-android

IOS

npm run react-native run-ios

Release

Android

See https://facebook.github.io/react-native/docs/0.49/signed-apk-android.html for creating andoid release.

Deploy to app Store

In order to deploy to app store is preferrable to create a bundled file that runs on the phone without external dependencies. In the root directory, type:

./node_modules/.bin/react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle

After a successful output, you are good to modify the file placed at ios/CuriousEdinburgh/AppDelegate.m following:

  1. Commenting out the line
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
  1. Adding the following line:
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

which tells Xcode that the app has to run from the main.jsbundle file generated