Skip to content

Commit dd3295c

Browse files
committed
修改rnoh依赖,适配ohpm1.5
1 parent 59c5e7e commit dd3295c

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed
281 Bytes
Binary file not shown.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"license": "",
33
"devDependencies": {
4-
"rnoh": "file:../rnoh"
4+
55
},
66
"author": "",
77
"name": "rnoh-async-storage",
88
"description": "",
9-
"main": "",
9+
"main": "ts.ts",
1010
"version": "2.5.1",
11-
"dependencies": {}
11+
"dependencies": {
12+
"rnoh": "file:../rnoh"
13+
}
1214
}

packages/default-storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-oh-library/async-storage",
3-
"version": "1.21.0-0.1.1",
3+
"version": "1.21.0-0.1.2",
44
"description": "Asynchronous, persistent, key-value storage system for React Native.",
55
"main": "lib/commonjs/index.js",
66
"module": "lib/module/index.js",

packages/default-storage/src/RCTAsyncStorage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { shouldFallbackToLegacyNativeModule } from "@react-native-async-storage/
44
// TurboModuleRegistry falls back to NativeModules so we don't have to try go
55
// assign NativeModules' counterparts if TurboModuleRegistry would resolve
66
// with undefined.
7-
let RCTAsyncStorage = TurboModuleRegistry
8-
? Platform.OS === "harmony"
7+
// @ts-ignore
8+
let RCTAsyncStorage = TurboModuleRegistry ? Platform.OS === "harmony"
99
? TurboModuleRegistry.get("RNCAsyncStorage")
1010
: TurboModuleRegistry.get("PlatformLocalStorage") || // Support for external modules, like react-native-windows
1111
TurboModuleRegistry.get("RNC_AsyncSQLiteDBStorage") ||

0 commit comments

Comments
 (0)