@umituz/react-native-subscription 2.14.29 → 2.14.31

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.29",
3
+ "version": "2.14.31",
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",
@@ -39,6 +39,7 @@
39
39
  "@umituz/react-native-localization": "latest",
40
40
  "@umituz/react-native-sentry": "latest",
41
41
  "expo-constants": ">=16.0.0",
42
+ "expo-image": ">=2.0.0",
42
43
  "expo-linear-gradient": ">=14.0.0",
43
44
  "firebase": ">=10.0.0",
44
45
  "react": ">=18.2.0",
@@ -62,6 +63,7 @@
62
63
  "eslint-plugin-react": "^7.37.5",
63
64
  "eslint-plugin-react-hooks": "^7.0.1",
64
65
  "expo-constants": "~16.0.0",
66
+ "expo-image": "~3.0.0",
65
67
  "expo-linear-gradient": "~15.0.0",
66
68
  "firebase": "^10.0.0",
67
69
  "react": "19.1.0",
@@ -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" },