@umituz/react-native-subscription 2.14.30 → 2.14.32

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.30",
3
+ "version": "2.14.32",
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",
@@ -60,14 +60,12 @@ export const PaywallModal: React.FC<PaywallModalProps> = React.memo((props) => {
60
60
  const showCredits = mode === "credits";
61
61
  const showSubscription = mode === "subscription" || mode === "hybrid";
62
62
 
63
- // Debug logging for credit amounts
64
- if (__DEV__ && visible && showSubscription) {
65
- console.log("[PaywallModal] Credit amounts debug:", {
66
- creditAmountsKeys: creditAmounts ? Object.keys(creditAmounts) : [],
67
- creditAmountsValues: creditAmounts,
68
- creditsLabel,
63
+ // Debug logging
64
+ if (__DEV__ && visible) {
65
+ console.log("[PaywallModal] Props:", {
66
+ hasHeroImage: !!heroImage,
67
+ heroImageType: typeof heroImage,
69
68
  packagesCount: subscriptionPackages.length,
70
- packageIdentifiers: subscriptionPackages.map(p => p.product?.identifier),
71
69
  });
72
70
  }
73
71
 
@@ -241,9 +239,9 @@ const styles = StyleSheet.create({
241
239
  modalContent: { padding: 0, borderWidth: 0, overflow: "hidden" },
242
240
  container: { flex: 1 },
243
241
  closeBtn: { position: "absolute", top: 12, right: 12, width: 32, height: 32, borderRadius: 16, justifyContent: "center", alignItems: "center", zIndex: 10 },
244
- scroll: { flexGrow: 1, padding: 16, paddingTop: 48, paddingBottom: 32 },
245
- heroContainer: { alignItems: "center", marginBottom: 16, marginTop: -24 },
246
- heroImage: { width: 200, height: 200, borderRadius: 16 },
242
+ scroll: { flexGrow: 1, padding: 16, paddingTop: 16, paddingBottom: 32 },
243
+ heroContainer: { alignItems: "center", marginBottom: 20, marginTop: 32 },
244
+ heroImage: { width: 180, height: 180, borderRadius: 90 },
247
245
  header: { alignItems: "center", marginBottom: 12 },
248
246
  title: { fontWeight: "700", textAlign: "center", marginBottom: 4 },
249
247
  subtitle: { textAlign: "center" },
@@ -88,7 +88,7 @@ export const UpgradePrompt: React.FC<UpgradePromptProps> = ({
88
88
  <View style={styles.container}>
89
89
  <View style={styles.header}>
90
90
  <View style={styles.iconContainer}>
91
- <AtomicIcon name="Sparkles" customSize={32} color="primary" />
91
+ <AtomicIcon name="sparkles" customSize={32} color="primary" />
92
92
  </View>
93
93
  <AtomicText
94
94
  type="headlineSmall"
@@ -112,7 +112,7 @@ export const UpgradePrompt: React.FC<UpgradePromptProps> = ({
112
112
  <View key={index} style={styles.benefitItem}>
113
113
  <View style={styles.benefitIconWrapper}>
114
114
  <AtomicIcon
115
- name={benefit.icon || "Check"}
115
+ name={benefit.icon || "checkmark"}
116
116
  customSize={16}
117
117
  color="primary"
118
118
  />