What's Changed
- New storage option that lets you choose what storage solution you want to use (async storage/mmkv etc).
- Support for main.ts
- Dynamic imports enabled by the unstable_useRequireContext option in metro config.
- you only need to generate your requires file when main.ts changes.
- Error boundaries for stories so your app shouldn't crash when a story throws an error.
- Improved markdown renderer for notes addon.
- Simpler setup for auto args.
Breaking Changes
See the migration guide for more details: https://github.com/storybookjs/react-native/blob/next/MIGRATION.md#from-version-65x-to-76x
- getStorybookUI comes from storybook.requires view export
- storage is a required option in getStorybookUI for persisting your last story
- transformer.unstable_allowRequireContext metro option is required (requires RN 0.72)
- you may also need to add .mjs to your resolver.sourceExts
- types should be imported from
@storybook/react
- react native server is replaced by addon-react-native-server
Full Changelog: v6.5.8...v7.6.11