@umituz/react-native-subscription 2.27.120 → 2.27.121

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.27.120",
3
+ "version": "2.27.121",
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",
@@ -122,6 +122,7 @@ export const SubscriptionDetailScreen: React.FC<
122
122
  expirationDate={config.expirationDate}
123
123
  purchaseDate={config.purchaseDate}
124
124
  daysRemaining={config.daysRemaining}
125
+ hideTitle={!!config.onClose}
125
126
  translations={config.translations}
126
127
  />
127
128
  )}
@@ -16,6 +16,7 @@ export interface SubscriptionHeaderProps {
16
16
  expirationDate?: string;
17
17
  purchaseDate?: string;
18
18
  daysRemaining?: number | null;
19
+ hideTitle?: boolean;
19
20
  translations: {
20
21
  title: string;
21
22
  statusActive: string;
@@ -36,6 +37,7 @@ export const SubscriptionHeader: React.FC<SubscriptionHeaderProps> = ({
36
37
  expirationDate,
37
38
  purchaseDate,
38
39
  daysRemaining,
40
+ hideTitle,
39
41
  translations,
40
42
  }) => {
41
43
  const tokens = useAppDesignTokens();
@@ -87,14 +89,16 @@ export const SubscriptionHeader: React.FC<SubscriptionHeaderProps> = ({
87
89
  return (
88
90
  <View style={styles.container}>
89
91
  <View style={styles.header}>
90
- <View style={styles.titleContainer}>
91
- <AtomicText
92
- type="headlineSmall"
93
- style={[styles.title, { color: tokens.colors.textPrimary }]}
94
- >
95
- {translations.title}
96
- </AtomicText>
97
- </View>
92
+ {!hideTitle && (
93
+ <View style={styles.titleContainer}>
94
+ <AtomicText
95
+ type="headlineSmall"
96
+ style={[styles.title, { color: tokens.colors.textPrimary }]}
97
+ >
98
+ {translations.title}
99
+ </AtomicText>
100
+ </View>
101
+ )}
98
102
  <PremiumStatusBadge
99
103
  status={statusType}
100
104
  activeLabel={translations.statusActive}