Migration Steps
You can check the correct version by looking at the
peerDependencies. Please refer to the core Storybook migration guide for more details on the breaking changes of this package.For better compatibility with projects that includes both Storybook and Storybook React Native, the default configuration folder for Storybook React Native has been renamed from
.storybook/ to .rnstorybook/.What Changed
The main changes in v9 are:-
Configuration folder renamed:
.storybook/→.rnstorybook/- This prevents conflicts when running both web and React Native Storybook in the same project
- You may need to update your metro config
configPathoption to point to.rnstorybook
-
Storybook core updated to v9: The core
storybookpackage has been updated to version 9- See the Storybook v9 migration guide for core changes
-
Addon packages updated: All
@storybook/addon-ondevice-*packages need to be updated to v9