Try the latest version with
npx create-expo-app@latest --template expo-template-storybook@latest UniversalStorybook
or
npx @react-native-community/cli@latest init --template react-native-template-storybook@latest UniversalStorybook
To migrate an existing project
- Update storybook dependencies to ^9
- Rename .storybook to .rnstorybook (if you use .storybook for rn storybook config)
main changes
- internal api changes to support v9 core restructuring
- lite mode ui
- custom ui support
- remove prettier dependency
- conditional args for controls
- better support for storyNames
- you can disable doc tools now if you need to
breaking changes
- .rnstorybook is now the default config folder instead of .storybook to make it easier to have both reactjs and react native storybook alongside each other
- if you want to keep the .storybook name or any other name you can still use the configPath option to override this.
What's Changed
- feat: v9 init by @dannyhw in #698
- chore(deps-dev): bump vite from 6.1.1 to 6.1.2 by @dependabot in #703
- chore(deps-dev): bump vite from 6.2.3 to 6.2.4 by @dependabot in #705
- chore(deps): bump image-size from 1.1.1 to 1.2.1 by @dependabot in #706
- chore(deps-dev): bump vite from 6.2.4 to 6.2.5 by @dependabot in #708
- chore(deps-dev): bump vite from 6.2.5 to 6.2.6 by @dependabot in #712
- feat: upgrade everything to latest alpha version by @dannyhw in #704
- fix: add type for view export (#715) by @jvliwanag in #716
- Hide controls if they are disabled using the built-in
includeConditionalArg
function by @daviegourevitch in #714 - feat: expo example update by @dannyhw in #720
- chore(deps-dev): bump vite from 6.2.6 to 6.2.7 by @dependabot in #719
- fix: remove prettier dependency by @dannyhw in #722
- feat: use eslint 9 by @dannyhw in #723
- feat: custom ui option by @dannyhw in #724
- chore(deps): bump undici from 6.21.1 to 6.21.3 by @dependabot in #728
- feat: lite mode ui by @dannyhw in #729
- feat: update to stable version of v9 by @dannyhw in #736
New Contributors
- @jvliwanag made their first contribution in #716
- @daviegourevitch made their first contribution in #714
Full Changelog: v8.6.2...v9.0.0