Skip to content

Instantly share code, notes, and snippets.

@dannyhw
Last active June 2, 2025 21:42
Show Gist options
  • Save dannyhw/cbf42ce98a52e36663a14fc9ea85056e to your computer and use it in GitHub Desktop.
Save dannyhw/cbf42ce98a52e36663a14fc9ea85056e to your computer and use it in GitHub Desktop.
Expo router setup in 2 minutes

Heres how I add React native Storybook to an expo router project in 2 minutes

npm create storybook

choose recommended and then native

npx expo@latest customize metro.config.js

copy the metro config

const withStorybook = require("@storybook/react-native/metro/withStorybook");
module.exports = withStorybook(config);

add storybook screen to app

create app/storybook.tsx

export { default } from "../.rnstorybook";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment