@umituz/react-native-subscription 2.14.18 → 2.14.19

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.14.18",
3
+ "version": "2.14.19",
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",
@@ -78,9 +78,6 @@ export const useSubscriptionSettingsConfig = (
78
78
  [expiresAtIso]
79
79
  );
80
80
 
81
- // Subscription press handler - always opens paywall for upgrade
82
- const handleSubscriptionPress = openPaywall;
83
-
84
81
  // Status type
85
82
  const statusType: SubscriptionStatusType = isPremium ? "active" : "none";
86
83
 
@@ -112,7 +109,7 @@ export const useSubscriptionSettingsConfig = (
112
109
  ? translations.statusActive
113
110
  : translations.statusFree,
114
111
  icon: "diamond",
115
- onPress: handleSubscriptionPress,
112
+ onPress: openPaywall,
116
113
  },
117
114
  sectionConfig: {
118
115
  statusType,
@@ -58,7 +58,7 @@ export const useSubscriptionStatus = ({
58
58
 
59
59
  return status;
60
60
  },
61
- enabled: enabled && !!userId && SubscriptionManager.isInitialized(),
61
+ enabled: enabled && !!userId && SubscriptionManager.isInitializedForUser(userId),
62
62
  staleTime: 30 * 1000,
63
63
  gcTime: 5 * 60 * 1000,
64
64
  });