rn-linkrunner 0.4.1 → 0.4.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 CHANGED
@@ -54,8 +54,13 @@ import linkrunner from 'rn-linkrunner';
54
54
 
55
55
  const onTrigger = () => {
56
56
  linkrunner.trigger({
57
- user_id: 'USER_ID',
58
- data: {},
57
+ user_data: {
58
+ id: 1,
59
+ name: "Darshil Rathod", // optional
60
+ phone: "9583849238", // optional
61
+ email: "darshil@linkrunner.io", //optional
62
+ },
63
+ data: {}, // Any other data you might need
59
64
  });
60
65
  };
61
66
  ```
@@ -10,7 +10,7 @@ var _reactNativeEncryptedStorage = _interopRequireDefault(require("react-native-
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
- const package_version = '0.4.1';
13
+ const package_version = '0.4.2';
14
14
  const app_version = _reactNativeDeviceInfo.default.getVersion();
15
15
  const EncryptedStorageTokenName = 'linkrunner-token';
16
16
  const device_data = {
@@ -1,7 +1,7 @@
1
1
  import { Linking } from 'react-native';
2
2
  import DeviceInfo, { getManufacturer, getSystemVersion } from 'react-native-device-info';
3
3
  import EncryptedStorage from 'react-native-encrypted-storage';
4
- const package_version = '0.4.1';
4
+ const package_version = '0.4.2';
5
5
  const app_version = DeviceInfo.getVersion();
6
6
  const EncryptedStorageTokenName = 'linkrunner-token';
7
7
  const device_data = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-linkrunner",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "React Native Package for linkrunner",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import DeviceInfo, {
5
5
  } from 'react-native-device-info';
6
6
  import EncryptedStorage from 'react-native-encrypted-storage';
7
7
 
8
- const package_version = '0.4.1';
8
+ const package_version = '0.4.2';
9
9
  const app_version = DeviceInfo.getVersion();
10
10
  const EncryptedStorageTokenName = 'linkrunner-token';
11
11