@react-native-ohos/react-native-sensors 7.3.7-rc.1 → 7.3.7-rc.3

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @react-native-ohos/react-native-sensors
2
2
 
3
- This project is based on [react-native-sensors](https://github.com/react-native-sensors/react-native-sensors/tree/v7.2.1-rc.2)
3
+ This project is based on [react-native-sensors@7.3.6](https://github.com/react-native-sensors/react-native-sensors/tree/v7.3.6)
4
4
 
5
5
  ## Documentation
6
6
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  name: "@react-native-ohos/react-native-sensors",
3
- version: "7.3.7-rc.1",
3
+ version: "7.3.7-rc.3",
4
4
  description: "Please describe the basic information.",
5
5
  main: "Index.ets",
6
6
  author: "",
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-sensors",
3
- "version": "7.3.7-rc.1",
3
+ "version": "7.3.7-rc.3",
4
4
  "description": "A developer friendly approach for sensors in react-native",
5
5
  "scripts": {
6
6
  "contributor:add": "all-contributors add",
@@ -16,7 +16,7 @@
16
16
  "main": "index.js",
17
17
  "types": "index.d.ts",
18
18
  "repository": "https://gitcode.com/openharmony-sig/rntpc_react-native-sensors.git",
19
- "homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-sensors.git",
19
+ "homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-sensors/tree/br_rnoh0.77#readme",
20
20
  "keywords": [
21
21
  "react-native",
22
22
  "harmony"
@@ -65,7 +65,7 @@
65
65
  "react-native": "0.77.1",
66
66
  "regenerator-runtime": "0.13.1",
67
67
  "rxjs-marbles": "5.0.0",
68
- "react-native-harmony-cli": "file:./packages/rnoh-react-native-harmony-cli-0.77.10.tgz"
68
+ "react-native-harmony-cli": "file:./packages/react-native-oh-react-native-harmony-cli-0.77.18.tgz"
69
69
  },
70
70
  "harmony": {
71
71
  "alias": "react-native-sensors"
package/src/sensors.js CHANGED
@@ -35,7 +35,9 @@ function createSensorObservable(sensorType) {
35
35
  RNSensors.isAvailable(sensorType).then((res) => {
36
36
  this.isSensorAvailable = true;
37
37
  if (!res) {
38
- observer.error(`Sensors${sensorType} is not available`);
38
+ observer.next(null);
39
+ observer.complete();
40
+ RNSensors.stop(sensorType);
39
41
  return;
40
42
  } else {
41
43
  RNSensors.start(sensorType);
@@ -1,18 +0,0 @@
1
- {
2
- "meta": {
3
- "stableOrder": true
4
- },
5
- "lockfileVersion": 3,
6
- "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
7
- "specifiers": {
8
- "@rnoh/react-native-openharmony@../../example/node_modules/react-native-harmony/harmony/react_native_openharmony.har": "@rnoh/react-native-openharmony@../../example/node_modules/react-native-harmony/harmony/react_native_openharmony.har"
9
- },
10
- "packages": {
11
- "@rnoh/react-native-openharmony@../../example/node_modules/react-native-harmony/harmony/react_native_openharmony.har": {
12
- "name": "@rnoh/react-native-openharmony",
13
- "version": "0.77.10",
14
- "resolved": "../../example/node_modules/react-native-harmony/harmony/react_native_openharmony.har",
15
- "registryType": "local"
16
- }
17
- }
18
- }