diff --git a/packages/default-storage/harmony/async_storage.har b/packages/default-storage/harmony/async_storage.har index a838797a..04b10775 100644 Binary files a/packages/default-storage/harmony/async_storage.har and b/packages/default-storage/harmony/async_storage.har differ diff --git a/packages/default-storage/harmony/async_storage/oh-package.json5 b/packages/default-storage/harmony/async_storage/oh-package.json5 index 8f24019a..23022bb9 100644 --- a/packages/default-storage/harmony/async_storage/oh-package.json5 +++ b/packages/default-storage/harmony/async_storage/oh-package.json5 @@ -1,12 +1,14 @@ { "license": "", "devDependencies": { - "rnoh": "file:../rnoh" + }, "author": "", "name": "rnoh-async-storage", "description": "", - "main": "", + "main": "ts.ts", "version": "2.5.1", - "dependencies": {} + "dependencies": { + "rnoh": "file:../rnoh" + } } \ No newline at end of file diff --git a/packages/default-storage/package.json b/packages/default-storage/package.json index c1c54ea5..dade1495 100644 --- a/packages/default-storage/package.json +++ b/packages/default-storage/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-oh-library/async-storage", - "version": "1.21.0-0.1.1", + "version": "1.21.0-0.1.2", "description": "Asynchronous, persistent, key-value storage system for React Native.", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", diff --git a/packages/default-storage/src/RCTAsyncStorage.ts b/packages/default-storage/src/RCTAsyncStorage.ts index 55c69add..e486f3ea 100644 --- a/packages/default-storage/src/RCTAsyncStorage.ts +++ b/packages/default-storage/src/RCTAsyncStorage.ts @@ -4,8 +4,8 @@ import { shouldFallbackToLegacyNativeModule } from "@react-native-async-storage/ // TurboModuleRegistry falls back to NativeModules so we don't have to try go // assign NativeModules' counterparts if TurboModuleRegistry would resolve // with undefined. -let RCTAsyncStorage = TurboModuleRegistry - ? Platform.OS === "harmony" +// @ts-ignore +let RCTAsyncStorage = TurboModuleRegistry ? Platform.OS === "harmony" ? TurboModuleRegistry.get("RNCAsyncStorage") : TurboModuleRegistry.get("PlatformLocalStorage") || // Support for external modules, like react-native-windows TurboModuleRegistry.get("RNC_AsyncSQLiteDBStorage") ||