@openlv/react-native 0.1.0 → 0.1.2
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 +5 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,9 +38,11 @@ Then use it like `@openlv/session` (no extra polyfill calls):
|
|
|
38
38
|
```ts
|
|
39
39
|
import { connectSession } from "@openlv/react-native";
|
|
40
40
|
|
|
41
|
-
const session = await connectSession("openlv://...", async (
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
const session = await connectSession("openlv://...", async (request) => {
|
|
42
|
+
const { id } = request as { id: number | string | null; };
|
|
43
|
+
|
|
44
|
+
// ...handle the JSON-RPC request...
|
|
45
|
+
return { jsonrpc: "2.0", id, result: "ok" };
|
|
44
46
|
});
|
|
45
47
|
|
|
46
48
|
await session.connect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openlv/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"open-lavatory",
|
|
6
6
|
"react-native"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-native-webrtc": "^124.0.6",
|
|
55
55
|
"react-native-webview": "^13.15.0",
|
|
56
56
|
"react-native-webview-crypto": "^0.0.28",
|
|
57
|
-
"@openlv/session": "0.
|
|
57
|
+
"@openlv/session": "0.3.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=18",
|