Skip to content

tomdyson/react-native-example

 
 

Repository files navigation

Festival: React Native

alt text

This is a skeleton React Native App for Wagtail sites. It's based on an app by Josh Barr from Springload for New Zealand Festival. It speaks to the API on the live festival website.

Getting started

  1. Follow the React Native guide to set up the tools you'll need in your developer environment.
  2. git clone [email protected]:tomdyson/react-native-example.git
  3. Open react-native-example/ios/Festival.xcodeproj in Xcode

Testing on a simulator:

To develop on the iOS simulator, the default settings in AppDelegate.m (xcode) will be fine:

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];

For developing on a device rapidly, you can change localhost above to your machine's local IP address, eg:

jsCodeLocation = [NSURL URLWithString:@"http://10.0.0.96:8081/index.ios.bundle?platform=ios&dev=true"];

note: This will only work with real devices, not with builds targeting the iOS simulator.

When you want to develop/test on a real device, it's easiest to bundle the JS with the app. You can do that by uncommenting this line:

//   jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

Signing authorities:

To test on a real device, you'll need to have xCode signed in to the Apple Developer Programme.

There's details in the UPM. Look for [email protected].

About

A skeleton React Native app for Wagtail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.9%
  • Objective-C 25.0%
  • Java 5.1%