Skip to main content

Demo

Run the example application and test various use cases quickly.

Build and Run

  1. Set up the development environment

  2. Download the PRESTOplay for React Native package from the castLabs Download Portal

  3. Extract the downloaded archive and enter the newly created directory

  4. Go to the example directory

    cd example
  5. Install example dependencies

    npm install
  6. Install iOS dependencies

    npm run ios:install
  7. Start Metro server

    npm start
  8. Connect your device

Android

  1. Fix connection to the Metro server

    adb reverse tcp:8081 tcp:8081
  2. Open the <workspace>example/android directory in Android Studio

  3. Select Run / Select your device... / MY_DEVICE

  4. Build and Run the application

iOS

  1. Open the <workspace>example/ios/example.xcworkspace in Xcode
  2. Adjust properties in Project / Signing & Capabilities / Signing tab to your needs (one time)
  3. Select Product / Scheme / example
  4. Select Product / Destination / MY_DEVICE
  5. Build and Run the application

Troubleshooting

The Xcode build may fail with a PhaseScriptExecution error if:

  • The project workspace path contains spaces. For example, if the archive downloaded from the Download Portal was extracted to /Users/john/package 2/.
  • Another HTTP server is running on port 8081.