@umituz/react-native-subscription 2.2.24 → 2.2.25

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.2.24",
3
+ "version": "2.2.25",
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",
@@ -63,4 +63,4 @@
63
63
  "README.md",
64
64
  "LICENSE"
65
65
  ]
66
- }
66
+ }
@@ -29,6 +29,15 @@ export const PaywallLegalFooter: React.FC<PaywallLegalFooterProps> = React.memo(
29
29
  }) => {
30
30
  const tokens = useAppDesignTokens();
31
31
 
32
+ if (__DEV__) {
33
+ console.log("[PaywallLegalFooter] Rendering with props:", {
34
+ hasPrivacyUrl: !!privacyUrl,
35
+ hasTermsUrl: !!termsUrl,
36
+ privacyText,
37
+ termsText: termsText?.substring(0, 20) + "...",
38
+ });
39
+ }
40
+
32
41
  const handlePrivacyPress = () => {
33
42
  if (privacyUrl) {
34
43
  Linking.openURL(privacyUrl).catch(console.error);
@@ -61,7 +61,7 @@ export const SubscriptionModalOverlay: React.FC<SubscriptionModalOverlayProps> =
61
61
  animationType="fade"
62
62
  onRequestClose={onClose}
63
63
  >
64
- <View style={styles.overlay}>
64
+ <View style={[styles.overlay, variant === "dialog" && styles.overlayCentered]}>
65
65
  <TouchableOpacity
66
66
  style={styles.backdrop}
67
67
  activeOpacity={1}
@@ -83,7 +83,11 @@ export const SubscriptionModalOverlay: React.FC<SubscriptionModalOverlayProps> =
83
83
  const styles = StyleSheet.create({
84
84
  overlay: {
85
85
  flex: 1,
86
- justifyContent: "flex-end", // Bottom-sheet default
86
+ justifyContent: "flex-end",
87
+ },
88
+ overlayCentered: {
89
+ justifyContent: "center",
90
+ paddingHorizontal: 20,
87
91
  },
88
92
  backdrop: {
89
93
  ...StyleSheet.absoluteFillObject,