@umituz/react-native-subscription 2.12.4 → 2.12.5
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.12.
|
|
3
|
+
"version": "2.12.5",
|
|
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",
|
|
@@ -47,12 +47,14 @@ export const PremiumDetailsCard: React.FC<PremiumDetailsCardProps> = ({
|
|
|
47
47
|
|
|
48
48
|
{!isPremium && !showCredits && (
|
|
49
49
|
<View style={styles.freeUserHeader}>
|
|
50
|
-
<
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
|
|
50
|
+
<View style={styles.freeUserTextContainer}>
|
|
51
|
+
<Text style={[styles.freeUserTitle, { color: tokens.colors.text }]}>
|
|
52
|
+
{translations.title}
|
|
53
|
+
</Text>
|
|
54
|
+
<Text style={[styles.freeUserDescription, { color: tokens.colors.textSecondary }]}>
|
|
55
|
+
Unlock all features and create unlimited magic
|
|
56
|
+
</Text>
|
|
57
|
+
</View>
|
|
56
58
|
</View>
|
|
57
59
|
)}
|
|
58
60
|
|
|
@@ -124,11 +126,11 @@ export const PremiumDetailsCard: React.FC<PremiumDetailsCardProps> = ({
|
|
|
124
126
|
)}
|
|
125
127
|
{!isPremium && onUpgrade && translations.upgradeButton && (
|
|
126
128
|
<TouchableOpacity
|
|
127
|
-
style={[styles.
|
|
129
|
+
style={[styles.premiumButton, { backgroundColor: tokens.colors.primary }]}
|
|
128
130
|
onPress={onUpgrade}
|
|
129
131
|
>
|
|
130
132
|
<Text
|
|
131
|
-
style={[styles.
|
|
133
|
+
style={[styles.premiumButtonText, { color: tokens.colors.onPrimary }]}
|
|
132
134
|
>
|
|
133
135
|
{translations.upgradeButton}
|
|
134
136
|
</Text>
|
|
@@ -155,15 +157,28 @@ const styles = StyleSheet.create({
|
|
|
155
157
|
fontWeight: "600",
|
|
156
158
|
},
|
|
157
159
|
freeUserHeader: {
|
|
158
|
-
|
|
160
|
+
marginBottom: 4,
|
|
161
|
+
},
|
|
162
|
+
freeUserTextContainer: {
|
|
163
|
+
gap: 6,
|
|
159
164
|
},
|
|
160
165
|
freeUserTitle: {
|
|
161
|
-
fontSize:
|
|
162
|
-
fontWeight: "
|
|
166
|
+
fontSize: 20,
|
|
167
|
+
fontWeight: "700",
|
|
163
168
|
},
|
|
164
169
|
freeUserDescription: {
|
|
165
|
-
fontSize:
|
|
170
|
+
fontSize: 15,
|
|
166
171
|
fontWeight: "400",
|
|
172
|
+
lineHeight: 20,
|
|
173
|
+
},
|
|
174
|
+
premiumButton: {
|
|
175
|
+
paddingVertical: 16,
|
|
176
|
+
borderRadius: 12,
|
|
177
|
+
alignItems: "center",
|
|
178
|
+
},
|
|
179
|
+
premiumButtonText: {
|
|
180
|
+
fontSize: 16,
|
|
181
|
+
fontWeight: "700",
|
|
167
182
|
},
|
|
168
183
|
detailsSection: {
|
|
169
184
|
gap: 8,
|