@umituz/react-native-subscription 2.2.32 → 2.2.33

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.32",
3
+ "version": "2.2.33",
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",
@@ -30,11 +30,11 @@ export const PaywallLegalFooter: React.FC<PaywallLegalFooterProps> = React.memo(
30
30
  const tokens = useAppDesignTokens();
31
31
 
32
32
  if (__DEV__) {
33
- console.log("[PaywallLegalFooter] Rendering with props:", {
34
- hasPrivacyUrl: !!privacyUrl,
35
- hasTermsUrl: !!termsUrl,
36
- privacyText,
37
- termsText: termsText?.substring(0, 20) + "...",
33
+ console.log("[PaywallLegalFooter] Rendering links:", {
34
+ privacy: !!privacyUrl,
35
+ terms: !!termsUrl,
36
+ pText: privacyText,
37
+ tText: termsOfServiceText
38
38
  });
39
39
  }
40
40
 
@@ -62,32 +62,42 @@ export const PaywallLegalFooter: React.FC<PaywallLegalFooterProps> = React.memo(
62
62
  </AtomicText>
63
63
 
64
64
  {hasLinks && (
65
- <View style={styles.legalLinksContainer}>
66
- {privacyUrl && (
67
- <TouchableOpacity onPress={handlePrivacyPress} activeOpacity={0.7}>
68
- <AtomicText
69
- type="labelSmall"
70
- style={[styles.linkText, { color: tokens.colors.primary }]}
65
+ <View style={styles.legalLinksWrapper}>
66
+ <View style={[styles.legalLinksContainer, { borderColor: tokens.colors.border }]}>
67
+ {privacyUrl && (
68
+ <TouchableOpacity
69
+ onPress={handlePrivacyPress}
70
+ activeOpacity={0.6}
71
+ style={styles.linkItem}
71
72
  >
72
- {privacyText}
73
- </AtomicText>
74
- </TouchableOpacity>
75
- )}
76
- {privacyUrl && termsUrl && (
77
- <AtomicText type="labelSmall" style={[styles.separator, { color: tokens.colors.textTertiary }]}>
78
- {" • "}
79
- </AtomicText>
80
- )}
81
- {termsUrl && (
82
- <TouchableOpacity onPress={handleTermsPress} activeOpacity={0.7}>
83
- <AtomicText
84
- type="labelSmall"
85
- style={[styles.linkText, { color: tokens.colors.primary }]}
73
+ <AtomicText
74
+ type="labelSmall"
75
+ style={[styles.linkText, { color: tokens.colors.textSecondary }]}
76
+ >
77
+ {privacyText}
78
+ </AtomicText>
79
+ </TouchableOpacity>
80
+ )}
81
+
82
+ {privacyUrl && termsUrl && (
83
+ <View style={[styles.dot, { backgroundColor: tokens.colors.border }]} />
84
+ )}
85
+
86
+ {termsUrl && (
87
+ <TouchableOpacity
88
+ onPress={handleTermsPress}
89
+ activeOpacity={0.6}
90
+ style={styles.linkItem}
86
91
  >
87
- {termsOfServiceText}
88
- </AtomicText>
89
- </TouchableOpacity>
90
- )}
92
+ <AtomicText
93
+ type="labelSmall"
94
+ style={[styles.linkText, { color: tokens.colors.textSecondary }]}
95
+ >
96
+ {termsOfServiceText}
97
+ </AtomicText>
98
+ </TouchableOpacity>
99
+ )}
100
+ </View>
91
101
  </View>
92
102
  )}
93
103
  </View>
@@ -101,28 +111,45 @@ const styles = StyleSheet.create({
101
111
  container: {
102
112
  alignItems: "center",
103
113
  paddingHorizontal: 24,
104
- paddingBottom: 32, // Increased for home indicator safety
114
+ paddingBottom: 24,
105
115
  paddingTop: 8,
106
116
  width: "100%",
107
117
  },
108
118
  termsText: {
109
119
  textAlign: "center",
110
- fontSize: 11,
111
- lineHeight: 16,
112
- marginBottom: 10,
120
+ fontSize: 10,
121
+ lineHeight: 14,
122
+ marginBottom: 16,
123
+ opacity: 0.7,
124
+ },
125
+ legalLinksWrapper: {
126
+ width: "100%",
127
+ alignItems: "center",
113
128
  },
114
129
  legalLinksContainer: {
115
130
  flexDirection: "row",
116
131
  alignItems: "center",
117
132
  justifyContent: "center",
118
- marginTop: 4,
119
- flexWrap: "wrap",
133
+ paddingVertical: 8,
134
+ paddingHorizontal: 16,
135
+ borderRadius: 20,
136
+ backgroundColor: "rgba(255, 255, 255, 0.03)",
137
+ borderWidth: 1,
138
+ borderColor: "rgba(255, 255, 255, 0.05)",
139
+ },
140
+ linkItem: {
141
+ paddingVertical: 2,
120
142
  },
121
143
  linkText: {
122
- textDecorationLine: "underline",
123
- fontSize: 12,
144
+ fontSize: 11,
145
+ fontWeight: "500",
146
+ letterSpacing: 0.3,
124
147
  },
125
- separator: {
126
- marginHorizontal: 8,
148
+ dot: {
149
+ width: 3,
150
+ height: 3,
151
+ borderRadius: 1.5,
152
+ marginHorizontal: 12,
153
+ opacity: 0.3,
127
154
  },
128
155
  });