@nexly/react-native 0.15.4 → 0.16.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 +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ function Root() {
|
|
|
34
34
|
return (
|
|
35
35
|
<Button
|
|
36
36
|
title="Upgrade"
|
|
37
|
-
onPress={() => client?.
|
|
37
|
+
onPress={() => client?.customEvent('upgrade_clicked', { plan: 'pro' })}
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -55,8 +55,8 @@ developers expect.
|
|
|
55
55
|
|
|
56
56
|
Call `screenview()` only when the user actually views a different screen or
|
|
57
57
|
route. Do not use it for button taps, form input, tab content changes inside the
|
|
58
|
-
same screen, or other interactions. Send those with `client.
|
|
59
|
-
they still carry the current screen as `path
|
|
58
|
+
same screen, or other interactions. Send those with `client.customEvent(...)`
|
|
59
|
+
or `client.event(...)` instead; they still carry the current screen as `path`.
|
|
60
60
|
|
|
61
61
|
Hook it up to your router of choice. Example with `@react-navigation/native`:
|
|
62
62
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export { Nexly } from './nexly.js';
|
|
|
5
5
|
export { NexlyProvider, useNexlyClient, type NexlyProviderProps } from './nexly-provider.js';
|
|
6
6
|
export { collectEventMeta, collectSessionMeta } from './device-meta.js';
|
|
7
7
|
export { prewarmIds, touchSession, getCachedSessionId, getCachedVisitorId } from './session.js';
|
|
8
|
-
export type { NexlyEventInput, NexlyEventType, NexlyInit } from '@nexly/core';
|
|
8
|
+
export type { CData, NexlyEventInput, NexlyEventType, NexlyInit, StandardAttributionKey, StandardContextOverride, } from '@nexly/core';
|
|
9
|
+
export { isStandardAttributionKey, STANDARD_ATTRIBUTION_KEYS } from '@nexly/core';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC/F,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC/F,YAAY,EACV,KAAK,EACL,eAAe,EACf,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -5,3 +5,4 @@ export { Nexly } from './nexly.js';
|
|
|
5
5
|
export { NexlyProvider, useNexlyClient } from './nexly-provider.js';
|
|
6
6
|
export { collectEventMeta, collectSessionMeta } from './device-meta.js';
|
|
7
7
|
export { prewarmIds, touchSession, getCachedSessionId, getCachedVisitorId } from './session.js';
|
|
8
|
+
export { isStandardAttributionKey, STANDARD_ATTRIBUTION_KEYS } from '@nexly/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexly/react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "React Native bindings for Nexly: fetch transport, AsyncStorage IDs, AppState engagement on top of @nexly/core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react-native": ">=0.72.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@nexly/core": "0.
|
|
46
|
+
"@nexly/core": "0.16.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@react-native-async-storage/async-storage": "^2.1.2",
|