@umituz/react-native-subscription 2.13.15 → 2.13.17

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.13.15",
3
+ "version": "2.13.17",
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",
@@ -56,6 +56,17 @@ export const PaywallModal: React.FC<PaywallModalProps> = React.memo((props) => {
56
56
  const showCredits = mode === "credits";
57
57
  const showSubscription = mode === "subscription" || mode === "hybrid";
58
58
 
59
+ // Debug logging for credit amounts
60
+ if (__DEV__ && visible && showSubscription) {
61
+ console.log("[PaywallModal] Credit amounts debug:", {
62
+ creditAmountsKeys: creditAmounts ? Object.keys(creditAmounts) : [],
63
+ creditAmountsValues: creditAmounts,
64
+ creditsLabel,
65
+ packagesCount: subscriptionPackages.length,
66
+ packageIdentifiers: subscriptionPackages.map(p => p.product?.identifier),
67
+ });
68
+ }
69
+
59
70
  const handlePurchase = useCallback(async () => {
60
71
  setIsProcessing(true);
61
72
  try {
@@ -216,7 +227,7 @@ const styles = StyleSheet.create({
216
227
  modalContent: { padding: 0, borderWidth: 0, overflow: "hidden" },
217
228
  container: { flex: 1 },
218
229
  closeBtn: { position: "absolute", top: 12, right: 12, width: 32, height: 32, borderRadius: 16, justifyContent: "center", alignItems: "center", zIndex: 10 },
219
- scroll: { flexGrow: 1, padding: 16, paddingTop: 48 },
230
+ scroll: { flexGrow: 1, padding: 16, paddingTop: 48, paddingBottom: 32 },
220
231
  header: { alignItems: "center", marginBottom: 12 },
221
232
  title: { fontWeight: "700", textAlign: "center", marginBottom: 4 },
222
233
  subtitle: { textAlign: "center" },
@@ -153,10 +153,13 @@ const styles = StyleSheet.create({
153
153
  flexDirection: "row",
154
154
  justifyContent: "space-between",
155
155
  alignItems: "center",
156
+ gap: 16,
156
157
  },
157
158
  label: {
159
+ flex: 1,
158
160
  },
159
161
  value: {
160
162
  fontWeight: "600",
163
+ textAlign: "right",
161
164
  },
162
165
  });