@umituz/react-native-subscription 2.12.3 → 2.12.4

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",
3
+ "version": "2.12.4",
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,7 +47,7 @@
47
47
  "devDependencies": {
48
48
  "@tanstack/react-query": "^5.0.0",
49
49
  "@types/react": "~19.1.10",
50
- "@umituz/react-native-design-system": "^2.3.1",
50
+ "@umituz/react-native-design-system": "*",
51
51
  "@umituz/react-native-firebase": "*",
52
52
  "@umituz/react-native-legal": "*",
53
53
  "@umituz/react-native-localization": "*",
@@ -31,17 +31,30 @@ export const PremiumDetailsCard: React.FC<PremiumDetailsCardProps> = ({
31
31
 
32
32
  return (
33
33
  <View style={[styles.card, { backgroundColor: tokens.colors.surface }]}>
34
- <View style={styles.header}>
35
- <Text style={[styles.title, { color: tokens.colors.text }]}>
36
- {translations.title}
37
- </Text>
38
- <PremiumStatusBadge
39
- status={statusType}
40
- activeLabel={translations.statusActive}
41
- expiredLabel={translations.statusExpired}
42
- noneLabel={translations.statusFree}
43
- />
44
- </View>
34
+ {(isPremium || showCredits) && (
35
+ <View style={styles.header}>
36
+ <Text style={[styles.title, { color: tokens.colors.text }]}>
37
+ {translations.title}
38
+ </Text>
39
+ <PremiumStatusBadge
40
+ status={statusType}
41
+ activeLabel={translations.statusActive}
42
+ expiredLabel={translations.statusExpired}
43
+ noneLabel={translations.statusFree}
44
+ />
45
+ </View>
46
+ )}
47
+
48
+ {!isPremium && !showCredits && (
49
+ <View style={styles.freeUserHeader}>
50
+ <Text style={[styles.freeUserTitle, { color: tokens.colors.text }]}>
51
+ {translations.title}
52
+ </Text>
53
+ <Text style={[styles.freeUserDescription, { color: tokens.colors.textSecondary }]}>
54
+ {translations.upgradeButton ? `${translations.upgradeButton}` : "Unlock premium features"}
55
+ </Text>
56
+ </View>
57
+ )}
45
58
 
46
59
  {isPremium && (
47
60
  <View style={styles.detailsSection}>
@@ -141,6 +154,17 @@ const styles = StyleSheet.create({
141
154
  fontSize: 18,
142
155
  fontWeight: "600",
143
156
  },
157
+ freeUserHeader: {
158
+ gap: 4,
159
+ },
160
+ freeUserTitle: {
161
+ fontSize: 18,
162
+ fontWeight: "600",
163
+ },
164
+ freeUserDescription: {
165
+ fontSize: 14,
166
+ fontWeight: "400",
167
+ },
144
168
  detailsSection: {
145
169
  gap: 8,
146
170
  },