Skip to content

Commit 6142db6

Browse files
NickGerlemanKrzysztof Borowy
authored and
Krzysztof Borowy
committed
Prefer PlatformLocalStorage Over Other Native Modules (#255)
Prefer PlatformLocalStorage Over Other Native Modules
1 parent b04ffbf commit 6142db6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AsyncStorage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
const {NativeModules} = require('react-native');
1515

1616
const RCTAsyncStorage =
17+
NativeModules.PlatformLocalStorage || // Support for external modules, like react-native-windows
1718
NativeModules.RNC_AsyncSQLiteDBStorage ||
18-
NativeModules.RNCAsyncStorage ||
19-
NativeModules.PlatformLocalStorage; // Support for external modules, like react-native-windows
19+
NativeModules.RNCAsyncStorage;
2020

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

0 commit comments

Comments
 (0)