Installation
Install the package, add the config plugin, and make a native build.
You need this page once, when you add the package.
npx expo install @axonpack/preview expo-file-systemRequirements
| Needs | Why |
|---|---|
| Expo SDK 53 or later | The iOS hook the package uses came with SDK 53 |
| React Native 0.79 or later | The version SDK 53 ships |
| The New Architecture | The default from SDK 53. Under the old one the package logs one warning and always loads the default bundle. On SDK 53 and 54, check the app config doesn't set newArchEnabled to false |
| Hermes | Previews are Hermes bytecode, the same as a release build. On SDK 53 and 54, check the app config doesn't set jsEngine to jsc |
| A native build | The package has native code, so it does not run in Expo Go. A development or release build both work |
iOS 27 needs Expo SDK 58 or later. After moving an app to it, regenerate the iOS project with
npx expo prebuild --clean -p ios, since a stale ios/ folder crashes at launch.
The old architecture
Under the old architecture nothing breaks, but nothing switches either. The package logs one warning and the default bundle always loads, so the app still starts.
What each package does
| Package | Needed? | What it is for |
|---|---|---|
expo | Yes | The native module, the config plugin, and expo export:embed for publishing |
react, react-native | Yes | The list and the provider |
expo-file-system | Yes | Downloads and keeps previews in the app's documents folder |
expo-updates | No | Works alongside if you use it. See expo-updates |
The CLI, preview, comes with the package. It runs from your app's root and uses your app's own
expo to build and to compute the fingerprint, so it needs nothing else installed. preview publish
builds in a copy of the project and installs there, so the app needs a lockfile, which an install
already made. See Publishing.
Add the config plugin
Add the plugin to app.json, or to the plugins array that app.config.js or app.config.ts
returns:
{
"expo": {
"plugins": [["@axonpack/preview", { "compatibility": "appVersion" }]]
}
}At prebuild the plugin bakes three values into the build: the compatibility setting, the build's key, and the app's slug. The app uses the key to ask the bucket only for previews made for it, and the slug to find its own folder in the bucket. The slug also tells this app's dev preview servers apart from other apps'. Which setting to pick is on Compatibility.
npx expo config --type public prints the config when the plugin is found, and fails when it
isn't. Then make a native build:
npx expo prebuild
npx expo run:ios # or: npx expo run:androidWith EAS Build, the plugin runs during the build as usual.
Without the plugin
A build without the plugin has no key, and the list says so instead of showing anything. If you
can't use the plugin, pass the key and the slug yourself with the buildKey and slug options. See
Reference.
With expo-devtools
An app that uses @axonpack/expo-devtools installs this package and adds the
config plugin the same way, and makes a new native build. The devtools don't add the plugin. Then,
on App setup, the config goes to the devtools through
@axonpack/expo-devtools/support/preview/v0 (the support for this package's 0.x versions) instead
of a PreviewProvider of your own, and the list shows as a Preview tab in the devtools.
Give your AI agent the skill
If you work with a coding agent, install the Axonpack skill into the project:
npx skills add axonpack/skillsThen you can ask it to "Set up @axonpack/preview in this app", and it follows this page and the quick start from the live docs. Agent skill has the command for each package manager.
Where to go next
- Make a bucket: Storage.
- Put the list in the app: App setup.
- Publish: Publishing, then CI.
Or do all three in a few minutes against a local server: Quick start.
Next: Quick start