Axonpack

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-system

Requirements

NeedsWhy
Expo SDK 53 or laterThe iOS hook the package uses came with SDK 53
React Native 0.79 or laterThe version SDK 53 ships
The New ArchitectureThe 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
HermesPreviews 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 buildThe 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

PackageNeeded?What it is for
expoYesThe native module, the config plugin, and expo export:embed for publishing
react, react-nativeYesThe list and the provider
expo-file-systemYesDownloads and keeps previews in the app's documents folder
expo-updatesNoWorks 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:android

With 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/skills

Then 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

  1. Make a bucket: Storage.
  2. Put the list in the app: App setup.
  3. Publish: Publishing, then CI.

Or do all three in a few minutes against a local server: Quick start.

Next: Quick start

On this page