Skip to content

Commit 892afed

Browse files
author
Krzysztof Borowy
authored
fix: Deprecate AsyncStorage from React Native (#66)
From recent changes, we've moved back to add `LocalAsyncStorage` native module, which consequently fallbacks to deprecated Async Storage on RN Core. This change reverts this back and add new name, to be used by external storages.
1 parent 9fa8ab9 commit 892afed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AsyncStorage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const {NativeModules} = require('react-native');
1616
const RCTAsyncStorage =
1717
NativeModules.RNC_AsyncSQLiteDBStorage ||
1818
NativeModules.RNCAsyncStorage ||
19-
NativeModules.AsyncLocalStorage; // Support for external modules, like react-native-windows
19+
NativeModules.PlatformLocalStorage; // Support for external modules, like react-native-windows
2020

2121
if (!RCTAsyncStorage) {
2222
throw new Error(`[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

0 commit comments

Comments
 (0)