From 585a215abc584467bc5b45e08dd36e4915e3269c Mon Sep 17 00:00:00 2001 From: Alex <39951413+exzos28@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:56:50 +0200 Subject: [PATCH 1/3] Fix: Update README.md (#589) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 712a8fd8d04d2162042ca0700dac8a8bb41d4ff1 Mon Sep 17 00:00:00 2001 From: Georgy Kopylov Date: Sat, 14 Sep 2024 19:41:14 +0500 Subject: [PATCH 2/3] fixed typo in MIGRATION.md (#593) Co-authored-by: gkopylov --- MIGRATION.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 3dc6f04534..320732969c 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`. From b1861960756f834e862171d579b13eeff6b52964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Correia?= Date: Sat, 14 Sep 2024 15:42:37 +0100 Subject: [PATCH 3/3] chore: fix workspace dev script (#591) add parallel flag to lerna run, allowing multiple long-running processes reference: https://github.com/lerna/lerna/tree/main/libs/commands/run\#--parallel --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5b785c78e4..12257e2f03 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",