Skip to content

percy/percy-react-native-app

Repository files navigation

Percy Storybook React Native

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.

Repo layout

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.

Get started

packages/storybook-react-native/SETUP.md — complete setup walkthrough, troubleshooting, and configuration reference.

Quickstart

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

Trying the reference example

git 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-rn

A Percy build URL prints when the run completes. Open it to see one snapshot per story.

Status

  • ✅ 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)

License

MIT

About

Percy SDK for React Native Storybook visual testing via local Appium + emulator

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors