Skip to content

Commit

Permalink
fix missing type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
namidan committed Sep 6, 2023
1 parent 8e13426 commit 6d6c4fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/Basic/containers/CampaignScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ const CampaignScreen: FC<CampaignScreenProps> = ({ navigation }) => {
NamiPaywallManager.dismiss();
});

const subscriptionDeeplinkeRemover =
const subscriptionDeeplinkRemover =
NamiPaywallManager.registerDeeplinkActionHandler((url) => {
console.log('deeplink action ', url);
// for testing:
NamiPaywallManager.buySkuCancel();

NamiPaywallManager.dismiss();
});

Expand All @@ -114,7 +117,7 @@ const CampaignScreen: FC<CampaignScreenProps> = ({ navigation }) => {
subscriptionRemover();
subscriptionSignInRemover();
subscriptionRestoreRemover();
subscriptionDeeplinkeRemover();
subscriptionDeeplinkRemover();
// Clean up the launch subscription when the component unmounts
// For safety reasons
if (NamiCampaignManager.launchSubscription) {
Expand Down
1 change: 1 addition & 0 deletions src/NamiPaywallManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface INamiPaywallManager {
buySkuCompleteGooglePlay: (
purchaseSuccess: NamiPurchaseSuccessGooglePlay,
) => void;
buySkuCancel: () => void;
registerBuySkuHandler: (
callback: (sku: NamiSKU) => void,
) => EmitterSubscription['remove'];
Expand Down

0 comments on commit 6d6c4fc

Please sign in to comment.