firstusers 1.0.5 → 1.0.6

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/build/index.js +3 -12
  2. package/package.json +2 -1
package/build/index.js CHANGED
@@ -3,18 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.futracker = void 0;
4
4
  exports.startTracking = startTracking;
5
5
  exports.stopTracking = stopTracking;
6
- const react_native_1 = require("react-native");
7
- const LINKING_ERROR = `The package 'firstusers' doesn't seem to be linked. Make sure:\n\n` +
8
- react_native_1.Platform.select({ ios: "- Run 'pod install'\n", default: '' }) +
9
- '- You rebuilt the app after installing the package\n' +
10
- '- You are not using Expo Go (this module requires custom native code)\n';
11
- const FirstUsersTrackerModule = react_native_1.NativeModules.FirstUsersTracker
12
- ? react_native_1.NativeModules.FirstUsersTracker
13
- : new Proxy({}, {
14
- get() {
15
- throw new Error(LINKING_ERROR);
16
- },
17
- });
6
+ const expo_modules_core_1 = require("expo-modules-core");
7
+ // Load the native module using Expo Modules API
8
+ const FirstUsersTrackerModule = (0, expo_modules_core_1.requireNativeModule)('FirstUsersTracker');
18
9
  class futracker {
19
10
  /**
20
11
  * Configure the tracker with custom API URL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firstusers",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Usage tracking SDK for React Native/Expo apps. Tracks authenticated user sessions with 30s heartbeat to First Users platform.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -22,6 +22,7 @@
22
22
  "license": "MIT",
23
23
  "peerDependencies": {
24
24
  "expo": ">=50.0.0",
25
+ "expo-modules-core": "*",
25
26
  "react": "*",
26
27
  "react-native": "*"
27
28
  },