Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next' into feat/v8
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Sep 14, 2024
2 parents b1af9c7 + b186196 commit 21caee7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Here are some of the other improvements:

- 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.
- Dynamic imports enabled by the unstable_allowRequireContext 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.
Expand Down Expand Up @@ -100,10 +100,10 @@ export default StorybookUIRoot;

### Metro config

Update your `metro.config.js` to enable the `unstable_useRequireContext` option and you can now remove the sbmodern resolver if you have it.
Update your `metro.config.js` to enable the `unstable_allowRequireContext` option and you can now remove the sbmodern resolver if you have it.

> [!NOTE]
> The unstable_useRequireContext option requires at least react native 0.72
> The unstable_allowRequireContext option requires at least react native 0.72
If you are using expo and you don't have a metro config file you can create one by running `npx expo customize metro.config.js`.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ _Pictured is from the template mentioned in [getting started](#getting-started)_

### New project

There is some project boilerplate with `@storybook/react-native` and `@storybook/addons-react-native-web` both already configured with a simple example.
There is some project boilerplate with `@storybook/react-native` and `@storybook/addon-react-native-web` both already configured with a simple example.

For expo you can use this [template](https://github.com/dannyhw/expo-template-storybook) with the following command

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"scripts": {
"bootstrap": "node ./scripts/bootstrap.js",
"dev": "lerna run dev",
"dev": "lerna run dev --stream --parallel",
"dev:check-types": "tsc --noEmit",
"github-release": "github-release-from-changelog",
"lint": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.html,.ts,.tsx,.mjs --report-unused-disable-directives",
Expand Down

0 comments on commit 21caee7

Please sign in to comment.