@lapwy/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/LICENSE +21 -0
- package/README.md +7 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lapwy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lapwy/react-native
|
|
2
2
|
|
|
3
|
-
lapwy for React Native and Expo.
|
|
3
|
+
[lapwy](https://lapwy.com) for React Native and Expo.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
npm install @lapwy/react-native @react-native-async-storage/async-storage
|
|
@@ -18,3 +18,9 @@ track("add_to_cart", { product: "monstera" });
|
|
|
18
18
|
Screens can be followed for you: `navigationTracker` for React Navigation, `useScreen` for Expo Router or any screen component.
|
|
19
19
|
|
|
20
20
|
A user is told apart by one random id per install, kept in the storage you pass. Events wait in a queue that survives being offline and the app being closed. Time on a screen counts only while the app is in the foreground.
|
|
21
|
+
|
|
22
|
+
## Links
|
|
23
|
+
|
|
24
|
+
- [lapwy.com](https://lapwy.com): add your site and get its key (`lw_…`) under Settings → Install
|
|
25
|
+
- [SDK reference](https://lapwy.com/docs): every option, cookie modes, page grouping
|
|
26
|
+
- [llms.txt](https://lapwy.com/llms.txt): the same reference for AI coding agents
|
package/dist/index.cjs
CHANGED
|
@@ -32,7 +32,7 @@ __export(src_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(src_exports);
|
|
33
33
|
var import_react = require("react");
|
|
34
34
|
var import_react_native = require("react-native");
|
|
35
|
-
var DEFAULT_ENDPOINT = "https://
|
|
35
|
+
var DEFAULT_ENDPOINT = "https://i.lapwy.com/e";
|
|
36
36
|
var ID_KEY = "lapwy_device_id";
|
|
37
37
|
var QUEUE_KEY = "lapwy_queue";
|
|
38
38
|
var MAX_QUEUE = 500;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { AppState, Dimensions, Platform } from "react-native";
|
|
4
|
-
var DEFAULT_ENDPOINT = "https://
|
|
4
|
+
var DEFAULT_ENDPOINT = "https://i.lapwy.com/e";
|
|
5
5
|
var ID_KEY = "lapwy_device_id";
|
|
6
6
|
var QUEUE_KEY = "lapwy_queue";
|
|
7
7
|
var MAX_QUEUE = 500;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapwy/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "lapwy for React Native and Expo: init, screen, track, with an offline queue.",
|
|
5
|
-
"
|
|
5
|
+
"homepage": "https://lapwy.com",
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"sideEffects": false,
|
|
8
9
|
"files": [
|