diff --git a/README.md b/README.md index 59dc4dd..4b97c2e 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,27 @@ What can a document contain? Every Remote Compose building block, live with its /> ``` +## Try the demo + +The Expo demo app shows host values, JSON documents, documents from the network and performance +numbers. Prebuilt builds are attached to the GitHub releases since +[v0.2.0](https://github.com/ardmn/react-native-remote-compose/releases/tag/v0.2.0): + +- **Android 7.0+ (phone or emulator):** download `remote-compose-expo-demo-.apk` and open it + (allow installing unknown apps), or run `adb install remote-compose-expo-demo-.apk`. +- **iOS Simulator (a Mac with Xcode):** download `remote-compose-expo-demo--ios-simulator.tar.gz`, + then with a simulator booted: + + ```sh + tar -xzf remote-compose-expo-demo-*-ios-simulator.tar.gz + xcrun simctl install booted RemoteComposeExpo.app + xcrun simctl launch booted dev.ardmn.remotecompose.expo + ``` + + This build runs only in the simulator, not on a real iPhone. + +To build it yourself, see [Development](#development). + ## Get started Five steps from an empty React Native app to a document that reacts to your state and your taps. @@ -416,6 +437,11 @@ no npm token exists, and npm attaches a provenance attestation to the release. T `npm` GitHub environment, which only `v*` tags may deploy to and which waits for a maintainer to approve (Actions → the Release run → Review deployments). +After npm has the version, attach the demo builds to the GitHub release (see [Try the demo](#try-the-demo)): +`cd example-expo && npx eas-cli build --platform all --profile preview`, then upload the APK as +`remote-compose-expo-demo-.apk` and the simulator archive as +`remote-compose-expo-demo--ios-simulator.tar.gz` with `gh release upload v`. + ### Supply chain Exact versions everywhere; `yarn.lock` is installed with `--immutable` in Yarn's hardened mode;