Visual regression testing for React Native components rendered via Storybook for React Native, captured on real iOS Simulators or Android emulators driven by Appium, uploaded to Percy.
| Package | Description |
|---|---|
packages/storybook-react-native |
The @percy/storybook-react-native SDK + CLI. Start here. |
A working Expo + Storybook-RN fixture lives in the standalone percy/example-percy-storybook-react-native repo.
➡ packages/storybook-react-native/SETUP.md — complete setup walkthrough, troubleshooting, and configuration reference.
npm install --save-dev @percy/cli @percy/storybook-react-native
npx @percy/cli storybook-rn:init
# Add `enableWebsockets: true` to .rnstorybook/index — see SETUP.md §4
export PERCY_TOKEN=app_xxxxxxxx
npx percy storybook-rn:doctor
npx percy exec -- npx percy storybook-rngit clone https://github.com/percy/example-percy-storybook-react-native.git
cd example-percy-storybook-react-native
npm install
npx expo run:ios --device "iPhone 16" # cold build: ~10 min
# (in another terminal)
npx appium --port 4723
# (in another terminal, back at repo root)
export PERCY_TOKEN=app_xxxxxxxx
npx percy exec -- npx percy storybook-rnA Percy build URL prints when the run completes. Open it to see one snapshot per story.
- ✅ End-to-end pipeline verified on iPhone 16 Simulator with iOS 18.4
- ✅ Auto story enumeration from
.rnstorybook/main.{ts,js}+.stories.*files - ✅ Reuses Percy's existing CLI upload pipeline (no new backend)
- ✅ Unit test suite covering both local emulator (CLI mode) and BrowserStack App Automate (library mode)
MIT