From 712a8fd8d04d2162042ca0700dac8a8bb41d4ff1 Mon Sep 17 00:00:00 2001 From: Georgy Kopylov Date: Sat, 14 Sep 2024 19:41:14 +0500 Subject: [PATCH] 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`.