@umituz/react-native-subscription 2.42.0 → 2.43.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.42.0",
3
+ "version": "2.43.0",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -14,8 +14,6 @@ export interface PaywallOrchestratorOptions {
14
14
  heroImage: ImageSourcePropType;
15
15
  isNavReady?: boolean;
16
16
  isLocalizationReady?: boolean;
17
- onAuthRequired?: () => void;
18
- onPurchaseSuccess?: () => void;
19
17
  bestValueIdentifier?: string;
20
18
  creditsLabel?: string;
21
19
  }
@@ -33,8 +31,6 @@ export function usePaywallOrchestrator({
33
31
  heroImage,
34
32
  isNavReady = true,
35
33
  isLocalizationReady = true,
36
- onAuthRequired,
37
- onPurchaseSuccess,
38
34
  bestValueIdentifier = "yearly",
39
35
  creditsLabel,
40
36
  }: PaywallOrchestratorOptions) {
@@ -92,8 +88,6 @@ export function usePaywallOrchestrator({
92
88
  heroImage,
93
89
  source: shouldShowPostOnboarding ? "onboarding" : "manual",
94
90
  packages,
95
- onPurchaseSuccess,
96
- onAuthRequired,
97
91
  });
98
92
 
99
93
  if (shouldShowPostOnboarding) {
@@ -126,8 +120,6 @@ export function usePaywallOrchestrator({
126
120
  closePaywall,
127
121
  bestValueIdentifier,
128
122
  creditsLabel,
129
- onPurchaseSuccess,
130
- onAuthRequired,
131
123
  ]);
132
124
 
133
125
  const completeOnboarding = useSubscriptionFlowStore((state) => state.completeOnboarding);
@@ -45,8 +45,6 @@ export interface ManagedSubscriptionFlowProps {
45
45
  heroImage: ImageSourcePropType;
46
46
  bestValueIdentifier?: string;
47
47
  creditsLabel?: string;
48
- onAuthRequired?: () => void;
49
- onPurchaseSuccess?: () => void;
50
48
  };
51
49
 
52
50
  // Feedback Configuration
@@ -55,7 +53,7 @@ export interface ManagedSubscriptionFlowProps {
55
53
  onSubmit?: (data: { reason: string; otherText?: string }) => void | Promise<void>;
56
54
  };
57
55
 
58
- // Offline Configuration
56
+ // Offline Configuration (optional)
59
57
  offline?: {
60
58
  isOffline: boolean;
61
59
  message: string;
@@ -104,10 +102,10 @@ const ManagedSubscriptionFlowInner = React.memo<ManagedSubscriptionFlowProps>(({
104
102
  }
105
103
  }, [isSplashComplete, islocalizationReady]);
106
104
 
107
- const {
108
- flowState,
105
+ const {
106
+ flowState,
109
107
  setShowFeedback,
110
- completeOnboarding
108
+ completeOnboarding
111
109
  } = usePaywallOrchestrator({
112
110
  navigation,
113
111
  isNavReady,
@@ -116,8 +114,6 @@ const ManagedSubscriptionFlowInner = React.memo<ManagedSubscriptionFlowProps>(({
116
114
  features: paywall.features,
117
115
  legalUrls: paywall.legalUrls,
118
116
  heroImage: paywall.heroImage,
119
- onAuthRequired: paywall.onAuthRequired,
120
- onPurchaseSuccess: paywall.onPurchaseSuccess,
121
117
  bestValueIdentifier: paywall.bestValueIdentifier,
122
118
  creditsLabel: paywall.creditsLabel,
123
119
  });