@react-native-oh/react-native-harmony 0.72.70 → 0.72.75

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.
@@ -42,9 +42,9 @@ class Alert {
42
42
 
43
43
  // At most three buttons. Ignore rest.
44
44
  const validButtons: Buttons = (buttons ?? [{text: "OK"}]).slice(0, 3)
45
- const primaryButton = validButtons.pop();
45
+ const tertiaryButton = validButtons.pop();
46
46
  const secondaryButton = validButtons.pop();
47
- const thirdaryButton = validButtons.pop();
47
+ const primaryButton = validButtons.pop();
48
48
 
49
49
  if (primaryButton) {
50
50
  alertOptions.primaryButton = primaryButton.text || "";
@@ -52,8 +52,8 @@ class Alert {
52
52
  if (secondaryButton) {
53
53
  alertOptions.secondaryButton = secondaryButton.text || "";
54
54
  }
55
- if (thirdaryButton) {
56
- alertOptions.thirdaryButton = thirdaryButton.text || "";
55
+ if (tertiaryButton) {
56
+ alertOptions.tertiaryButton = tertiaryButton.text || "";
57
57
  }
58
58
 
59
59
  const onAction = (action, buttonKey) => {
@@ -62,8 +62,8 @@ class Alert {
62
62
  primaryButton.onPress && primaryButton.onPress();
63
63
  } else if (buttonKey === constants.secondaryButton) {
64
64
  secondaryButton.onPress && secondaryButton.onPress();
65
- } else if (buttonKey === constants.thirdaryButton) {
66
- thirdaryButton.onPress && thirdaryButton.onPress();
65
+ } else if (buttonKey === constants.tertiaryButton) {
66
+ tertiaryButton.onPress && tertiaryButton.onPress();
67
67
  }
68
68
  } else if (action === constants.dismissed) {
69
69
  options && options.onDismiss && options.onDismiss();
@@ -7,7 +7,7 @@ type AlertAction = string;
7
7
  /*
8
8
  primaryButton = 1,
9
9
  secondaryButton = 2,
10
- thirdaryButton = 3,
10
+ tertiaryButton = 3,
11
11
  */
12
12
  type AlertButtonKey = number;
13
13
  export type AlertOptions = {
@@ -15,7 +15,7 @@ export type AlertOptions = {
15
15
  message?: string;
16
16
  primaryButton?: string;
17
17
  secondaryButton?: string;
18
- thirdaryButton?: string;
18
+ tertiaryButton?: string;
19
19
  items?: Array<string>;
20
20
  cancelable?: boolean;
21
21
  };
@@ -26,7 +26,7 @@ export interface Spec extends TurboModule {
26
26
  dismissed: AlertAction;
27
27
  primaryButton: AlertButtonKey;
28
28
  secondaryButton: AlertButtonKey;
29
- thirdaryButton: AlertButtonKey;
29
+ tertiaryButton: AlertButtonKey;
30
30
  };
31
31
  alert: (
32
32
  options: AlertOptions,
@@ -41,7 +41,7 @@ function vibrateScheduler(
41
41
  if (repeat) {
42
42
  // $FlowFixMe[reassign-const]
43
43
  nextIndex = 0;
44
- shouldVibrate = true;
44
+ shouldVibrate = false;
45
45
  } else {
46
46
  _vibrating = false;
47
47
  return;
package/README.md CHANGED
@@ -1,13 +1,12 @@
1
1
  # @react-native-oh/react-native-harmony
2
2
 
3
- Please refer to: [RNOH repo](https://gitee.com/openharmony-sig/ohos_react_native) for more detail.
3
+ Please refer to: [RNOH repo](https://gitcode.com/openharmony-sig/ohos_react_native) for more detail.
4
4
 
5
5
  # Documentation
6
6
 
7
- - [中文](https://gitee.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/README.md)
8
- - [English](https://gitee.com/openharmony-sig/ohos_react_native/blob/master/docs/en/README.md)
7
+ - [中文](https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/README.md)
8
+ - [English](https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/en/README.md)
9
9
 
10
10
  # License
11
11
 
12
- This library is licensed under The [MIT License (MIT)](https://gitee.com/openharmony-sig/ohos_react_native)
13
-
12
+ This library is licensed under The [MIT License (MIT)](https://gitcode.com/openharmony-sig/ohos_react_native)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-oh/react-native-harmony",
3
- "version": "0.72.70",
3
+ "version": "0.72.75",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -49,7 +49,7 @@
49
49
  "./*.har"
50
50
  ],
51
51
  "dependencies": {
52
- "@react-native-oh/react-native-harmony-cli": "^0.0.28",
52
+ "@react-native-oh/react-native-harmony-cli": "^0.0.30",
53
53
  "colors": "^1.4.0",
54
54
  "fs-extra": "^11.1.1",
55
55
  "metro": "^0.76.3",
Binary file