@react-native-ohos/ting 1.3.0-rc.3 → 1.3.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  export default class BuildProfile {
2
- static readonly HAR_VERSION = '1.3.0-rc.3';
2
+ static readonly HAR_VERSION = '1.3.0-rc.4';
3
3
  static readonly BUILD_MODE_NAME = 'debug';
4
4
  static readonly DEBUG = true;
5
5
  static readonly TARGET_NAME = 'default';
@@ -5,7 +5,7 @@
5
5
  description: '',
6
6
  main: 'index.ets',
7
7
  type: 'module',
8
- version: '1.3.0-rc.3',
8
+ version: '1.3.0-rc.4',
9
9
  dependencies: {
10
10
  "@rnoh/react-native-openharmony": "file:../../node_modules/@react-native-oh/react-native-harmony/harmony/react_native_openharmony.har"
11
11
  },
@@ -287,7 +287,9 @@ export class TingTurboModule extends TurboModule implements TM.Ting.Spec {
287
287
  }
288
288
  }
289
289
  const duration = toastOptions.duration ? toastOptions.duration * 1000 : 3000;
290
-
290
+ if (toastOptions.haptic) {
291
+ option.onDidAppear = () => this.vibrator(toastOptions.haptic as string);
292
+ }
291
293
  // 创建关闭函数
292
294
  const dismissToast = () => {
293
295
  this.clearAllToasts();
@@ -372,6 +374,8 @@ export class TingTurboModule extends TurboModule implements TM.Ting.Spec {
372
374
 
373
375
  if (alertOptions.backdropOpacity && alertOptions.backdropOpacity >= 1) {
374
376
  option.maskColor = '#000000';
377
+ let baseOption = alertOptions as promptAction.BaseDialogOptions;
378
+ option.isModal = baseOption?.isModal;
375
379
  }
376
380
 
377
381
  const duration = alertOptions.duration ? alertOptions.duration * 1000 : 3000;
package/harmony/ting.har CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/ting",
3
- "version": "1.3.0-rc.3",
3
+ "version": "1.3.0-rc.4",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -42,7 +42,6 @@
42
42
  "registry": "https://registry.npmjs.org/"
43
43
  },
44
44
  "devDependencies": {
45
- "@evilmartians/lefthook": "^1.2.2",
46
45
  "@commitlint/config-conventional": "^17.0.2",
47
46
  "@evilmartians/lefthook": "^1.5.0",
48
47
  "@react-native/eslint-config": "^0.73.1",
@@ -58,9 +57,9 @@
58
57
  "jest": "^29.7.0",
59
58
  "pod-install": "^0.1.0",
60
59
  "prettier": "^3.0.3",
61
- "react": "18.3.1",
62
- "react-native": "0.77.1",
63
- "react-native-builder-bob": "^0.20.0",
60
+ "react": "18.3.1",
61
+ "react-native": "0.77.1",
62
+ "react-native-builder-bob": "^0.20.4",
64
63
  "release-it": "^15.0.0",
65
64
  "turbo": "^1.10.7",
66
65
  "typescript": "^5.2.2"