diff --git a/MIGRATION.md b/MIGRATION.md index 554d79098a..0a43b0703c 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -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. @@ -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`. diff --git a/README.md b/README.md index 71feceb155..d186ccc073 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index f7b6d5bb2a..d9affcc907 100644 --- a/package.json +++ b/package.json @@ -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",