@umituz/react-native-subscription 3.1.11 → 3.1.12

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": "3.1.11",
3
+ "version": "3.1.12",
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",
@@ -58,9 +58,15 @@ export const SubscriptionFlowProvider: React.FC<{ children: React.ReactNode }> =
58
58
  nextStatus = SubscriptionFlowStatus.INITIALIZING;
59
59
  } else if (!isOnboardingComplete) {
60
60
  nextStatus = SubscriptionFlowStatus.ONBOARDING;
61
- } else {
62
- // Onboarding complete - let ManagedSubscriptionFlow handle CHECK_PREMIUM
61
+ } else if (
62
+ status === SubscriptionFlowStatus.ONBOARDING ||
63
+ status === SubscriptionFlowStatus.INITIALIZING
64
+ ) {
65
+ // First time completing onboarding - transition to CHECK_PREMIUM once
63
66
  nextStatus = SubscriptionFlowStatus.CHECK_PREMIUM;
67
+ } else {
68
+ // Already past onboarding - let ManagedSubscriptionFlow control the flow
69
+ nextStatus = status;
64
70
  }
65
71
 
66
72
  if (nextStatus !== status) {