Skip to content

Commit 3459fde

Browse files
Adapt to the new version of ohpm
Signed-off-by: Young-zhiqiang <1529833211@qq.com>
1 parent 632f9d3 commit 3459fde

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

harmony/exception_handler.har

93 Bytes
Binary file not shown.

harmony/exception_handler/oh-package.json5

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"license": "ISC",
33
"types": "",
44
"devDependencies": {
5-
"rnoh": "file:../rnoh"
65
},
76
"name": "rnoh-exception-handler",
87
"description": "",
98
"main": "index.ets",
10-
"version": "1.0.0",
11-
"dependencies": {}
9+
"version": "1.0.1",
10+
"dependencies": {
11+
"rnoh": "file:../rnoh"
12+
}
1213
}

harmony/exception_handler/src/main/ets/ExceptionComponent.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import appRecovery from '@ohos.app.ability.appRecovery';
2727

2828
@Component
2929
export struct ExceptionComponent {
30-
private errMsg: string;
30+
private errMsg: string = "";
3131
@State message: string = 'SHOW DETAILS'
3232
@State visible: boolean = false
3333

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-exception-handler",
3-
"version": "2.10.10-0.1.1",
3+
"version": "2.10.10-0.1.2",
44
"description": "A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.",
55
"react-native": "src/index",
66
"source": "src/index",

0 commit comments

Comments
 (0)