insert-affiliate-react-native-sdk 1.0.9 → 1.1.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.
@@ -7,5 +7,6 @@ declare const useDeepLinkIapProvider: () => {
7
7
  userId: string;
8
8
  isIapticValidated: boolean | undefined;
9
9
  userPurchase: import("react-native-iap").Purchase | null;
10
+ trackEvent: (eventName: string) => Promise<void>;
10
11
  };
11
12
  export default useDeepLinkIapProvider;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const react_1 = require("react");
4
4
  const DeepLinkIapProvider_1 = require("./DeepLinkIapProvider");
5
5
  const useDeepLinkIapProvider = () => {
6
- const { alreadyPurchased, handleBuySubscription, iapLoading, referrerLink, isIapticValidated, subscriptions, userId, userPurchase, } = (0, react_1.useContext)(DeepLinkIapProvider_1.DeepLinkIapContext);
6
+ const { alreadyPurchased, handleBuySubscription, iapLoading, referrerLink, isIapticValidated, subscriptions, userId, userPurchase, trackEvent, } = (0, react_1.useContext)(DeepLinkIapProvider_1.DeepLinkIapContext);
7
7
  return {
8
8
  alreadyPurchased,
9
9
  handleBuySubscription,
@@ -13,6 +13,7 @@ const useDeepLinkIapProvider = () => {
13
13
  userId,
14
14
  isIapticValidated,
15
15
  userPurchase,
16
+ trackEvent
16
17
  };
17
18
  };
18
19
  exports.default = useDeepLinkIapProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insert-affiliate-react-native-sdk",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "A package that will give context having implementation of react-native-branch and react-native-iap and iaptic validate api.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",