From 654aeb9fedd51d1a82bc30a6d50b42ce5843d67a Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 18 Feb 2020 01:40:17 +0800 Subject: [PATCH] Merge pull request #9885 from gaguirre/patch-3 Fix typo on AsyncStorage section --- MIGRATION.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 6b573ada5970..6e35a0583f19 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -178,14 +178,14 @@ To avoid that now you have to manually pass asyncStorage to React Native Storybo Solution: -- Use `require('@react-native-community/async-storage').AsyncStorage` for React Native v0.59 and above. +- Use `require('@react-native-community/async-storage').default` for React Native v0.59 and above. - Use `require('react-native').AsyncStorage` for React Native v0.58 or below. - Use `null` to disable Async Storage completely. ```javascript getStorybookUI({ ... - asyncStorage: require('@react-native-community/async-storage').AsyncStorage || require('react-native').AsyncStorage || null + asyncStorage: require('@react-native-community/async-storage').default || require('react-native').AsyncStorage || null }); ```