@influto/react-native-sdk 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +3 -1
  2. package/ui.js +11 -0
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@influto/react-native-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "InfluTo SDK for React Native - Track influencer referrals and conversions",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
+ "react-native": "lib/index.js",
7
8
  "exports": {
8
9
  ".": {
9
10
  "import": "./lib/index.js",
@@ -19,6 +20,7 @@
19
20
  "files": [
20
21
  "lib",
21
22
  "src",
23
+ "ui.js",
22
24
  "README.md",
23
25
  "LICENSE"
24
26
  ],
package/ui.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * InfluTo SDK - UI Components Entry Point
3
+ *
4
+ * This file exists at the root level for Metro bundler compatibility.
5
+ * Metro doesn't support package.json "exports" field.
6
+ *
7
+ * Usage:
8
+ * import { ReferralCodeInput } from '@influto/react-native-sdk/ui';
9
+ */
10
+
11
+ module.exports = require('./lib/ui');