@symbiote-native/sensors 2.0.0 → 3.0.1
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 +23 -2
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -13,6 +13,24 @@ project never depends on) — every sensor's logic is hand-ported into this pack
|
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
16
|
+
**New app:**
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx @symbiote-native/cli new my-app --sensors
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Existing SymbioteNative app:**
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx @symbiote-native/cli add --sensors
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Either way: installs `@symbiote-native/sensors` and wires the native autolinking automatically — see
|
|
29
|
+
[`@symbiote-native/cli`](../cli).
|
|
30
|
+
|
|
31
|
+
<details>
|
|
32
|
+
<summary>Manual install (no CLI — installing and wiring native autolinking by hand)</summary>
|
|
33
|
+
|
|
16
34
|
```bash
|
|
17
35
|
npm install @symbiote-native/sensors
|
|
18
36
|
```
|
|
@@ -45,6 +63,8 @@ Permissions ship with the native module itself — nothing to reimplement, just
|
|
|
45
63
|
permission string each sensor needs (e.g. DeviceMotion/Pedometer need `NSMotionUsageDescription`
|
|
46
64
|
on iOS).
|
|
47
65
|
|
|
66
|
+
</details>
|
|
67
|
+
|
|
48
68
|
## Shape
|
|
49
69
|
|
|
50
70
|
```
|
|
@@ -129,9 +149,10 @@ export class SensorsScreen {
|
|
|
129
149
|
}
|
|
130
150
|
```
|
|
131
151
|
|
|
132
|
-
The examples above mirror the real canary demo screens —
|
|
152
|
+
The examples above mirror the real canary demo screens, which exist for all six Expo canaries —
|
|
133
153
|
`examples/expo-react/screens/SensorsScreen.tsx`, `examples/expo-vue-sfc/screens/SensorsScreen.vue`,
|
|
134
|
-
`examples/expo-vue-tsx/screens/SensorsScreen.tsx`, `examples/expo-
|
|
154
|
+
`examples/expo-vue-tsx/screens/SensorsScreen.tsx`, `examples/expo-svelte/screens/SensorsScreen.svelte`,
|
|
155
|
+
`examples/expo-solid/screens/SensorsScreen.tsx`, `examples/expo-angular/src/screens/SensorsScreen.ts`.
|
|
135
156
|
|
|
136
157
|
Every hook/composable/rune/primitive/`connect()` takes an optional `updateIntervalMs` and returns
|
|
137
158
|
`null` until the first native reading arrives — check `isAvailableAsync()` separately if you need
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/sensors",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "expo-sensors wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Accelerometer, Barometer, DeviceMotion, Gyroscope, LightSensor, Magnetometer, MagnetometerUncalibrated, Pedometer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
"svelte": ">=5.56.0",
|
|
82
82
|
"solid-js": ">=1.9.0",
|
|
83
83
|
"vue": ">=3.5.0",
|
|
84
|
-
"@symbiote-native/angular": "^
|
|
85
|
-
"@symbiote-native/engine": "^
|
|
86
|
-
"@symbiote-native/react": "^
|
|
87
|
-
"@symbiote-native/solid": "^
|
|
88
|
-
"@symbiote-native/svelte": "^
|
|
89
|
-
"@symbiote-native/vue": "^
|
|
84
|
+
"@symbiote-native/angular": "^3.1.1",
|
|
85
|
+
"@symbiote-native/engine": "^1.3.0",
|
|
86
|
+
"@symbiote-native/react": "^3.0.3",
|
|
87
|
+
"@symbiote-native/solid": "^3.0.3",
|
|
88
|
+
"@symbiote-native/svelte": "^3.0.3",
|
|
89
|
+
"@symbiote-native/vue": "^3.0.3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"@symbiote-native/angular": {
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
"solid-js": "^1.9.14",
|
|
135
135
|
"svelte": "^5.56.0",
|
|
136
136
|
"typescript": "~6.0.0",
|
|
137
|
-
"@symbiote-native/angular": "
|
|
138
|
-
"@symbiote-native/engine": "
|
|
139
|
-
"@symbiote-native/react": "
|
|
140
|
-
"@symbiote-native/solid": "
|
|
141
|
-
"@symbiote-native/svelte": "
|
|
142
|
-
"@symbiote-native/test-utils": "0.3
|
|
143
|
-
"@symbiote-native/vue": "
|
|
137
|
+
"@symbiote-native/angular": "3.1.1",
|
|
138
|
+
"@symbiote-native/engine": "1.3.0",
|
|
139
|
+
"@symbiote-native/react": "3.0.3",
|
|
140
|
+
"@symbiote-native/solid": "3.0.3",
|
|
141
|
+
"@symbiote-native/svelte": "3.0.3",
|
|
142
|
+
"@symbiote-native/test-utils": "0.4.3",
|
|
143
|
+
"@symbiote-native/vue": "3.0.3"
|
|
144
144
|
},
|
|
145
145
|
"scripts": {
|
|
146
146
|
"typecheck": "tsc --build",
|