Skip to content

Commit 0a331bd

Browse files
author
Krzysztof Borowy
committed
fix: accept external storage modules
1 parent 9fa8ab9 commit 0a331bd

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)