Skip to content

Commit 0ecea3c

Browse files
committed
1. 添加oh_pckage.json的version和name
2. 适配@rnoh/react-native-openharmony
1 parent 56141d4 commit 0ecea3c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

harmony/text_size/oh-package.json5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"devDependencies": {
44
},
55
"author": "",
6-
"name": "rnoh-text-size",
6+
"name": "@react-native-oh-tpl/react-native-text-size",
77
"description": "Please describe the basic information.",
88
"main": "index.ets",
9-
"version": "1.0.0",
9+
"version": "4.0.0-0.0.4",
1010
"dependencies": {
11-
"rnoh": "file:../rnoh"
11+
"@rnoh/react-native-openharmony": "file:../react_native_openharmony"
1212
}
1313
}

harmony/text_size/src/main/ets/RNTextSizePackage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RNPackage, TurboModulesFactory } from 'rnoh/ts';
2-
import type { TurboModule, TurboModuleContext } from 'rnoh/ts';
1+
import { RNPackage, TurboModulesFactory } from "@rnoh/react-native-openharmony/ts";
2+
import type { TurboModule, TurboModuleContext } from "@rnoh/react-native-openharmony/ts";
33
import { RNTextSizeTurboModule } from './RNTextSizeTurboModule';
44

55
class RNTextSizeTurboModuleFactory extends TurboModulesFactory {

harmony/text_size/src/main/ets/RNTextSizeTurboModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* SOFTWARE.
2323
*/
2424

25-
import { TurboModule } from "rnoh/ts";
25+
import { TurboModule } from "@rnoh/react-native-openharmony/ts";
2626
import font from '@ohos.font'
2727
import measure, { MeasureOptions } from '@ohos.measure'
2828
import { config } from './config';

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-tpl/react-native-text-size",
3-
"version": "4.0.0-0.0.3",
3+
"version": "4.0.0-0.0.4",
44
"harmony": {
55
"alias": "react-native-text-size"
66
},

0 commit comments

Comments
 (0)