Demo
Run the example application and test various use cases quickly.
Pre-requisites
- Android Studio: 2024.3.1 (Meerkat) or higher
- XCode: 16.2
Build and Run
Confirm environment is set up correctly:
npx react-native doctorDownload the PRESTOplay for React Native package from the castLabs Download Portal
Extract the downloaded archive and enter the newly created directory
Go to the example directory
cd exampleInstall example dependencies
npm installInstall iOS dependencies
npm run ios:installStart Metro server
npm startConnect your device
Android
Fix connection to the Metro server
adb reverse tcp:8081 tcp:8081Open the
<workspace>example/androiddirectory in Android StudioSelect Run / Select your device... / MY_DEVICE
Build and Run the application
iOS
- Open the
<workspace>example/ios/example.xcworkspacein Xcode - Adjust properties in Project / Signing & Capabilities / Signing tab to your needs (one time)
- Select Product / Scheme / example
- Select Product / Destination / MY_DEVICE
- 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.