@umituz/react-native-subscription 2.29.0 → 2.29.2
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 +1 -1
- package/src/domains/subscription/presentation/screens/SubscriptionDetailScreen.tsx +1 -0
- package/src/domains/subscription/presentation/screens/SubscriptionDetailScreen.types.ts +1 -0
- package/src/domains/subscription/presentation/screens/components/SubscriptionHeader.tsx +0 -2
- package/src/domains/subscription/presentation/screens/components/SubscriptionHeader.types.ts +0 -1
- package/src/domains/subscription/presentation/screens/components/SubscriptionHeaderContent.tsx +1 -12
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-subscription",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.2",
|
|
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",
|
|
@@ -53,6 +53,7 @@ export const SubscriptionDetailScreen: React.FC<SubscriptionDetailScreenProps> =
|
|
|
53
53
|
translations={config.translations}
|
|
54
54
|
willRenew={config.willRenew}
|
|
55
55
|
productIdentifier={config.productIdentifier}
|
|
56
|
+
productName={config.productName}
|
|
56
57
|
periodType={config.periodType}
|
|
57
58
|
store={config.store}
|
|
58
59
|
originalPurchaseDate={config.originalPurchaseDate}
|
|
@@ -60,6 +60,7 @@ export interface SubscriptionDetailConfig {
|
|
|
60
60
|
// Additional RevenueCat subscription details
|
|
61
61
|
willRenew?: boolean | null;
|
|
62
62
|
productIdentifier?: string | null;
|
|
63
|
+
productName?: string | null;
|
|
63
64
|
periodType?: string | null;
|
|
64
65
|
store?: string | null;
|
|
65
66
|
originalPurchaseDate?: string | null;
|
|
@@ -19,7 +19,6 @@ export const SubscriptionHeader: React.FC<SubscriptionHeaderProps> = ({
|
|
|
19
19
|
hideTitle,
|
|
20
20
|
translations,
|
|
21
21
|
willRenew,
|
|
22
|
-
productIdentifier,
|
|
23
22
|
periodType,
|
|
24
23
|
store,
|
|
25
24
|
originalPurchaseDate,
|
|
@@ -59,7 +58,6 @@ export const SubscriptionHeader: React.FC<SubscriptionHeaderProps> = ({
|
|
|
59
58
|
translations={translations}
|
|
60
59
|
styles={styles}
|
|
61
60
|
willRenew={willRenew}
|
|
62
|
-
productIdentifier={productIdentifier}
|
|
63
61
|
periodType={periodType}
|
|
64
62
|
store={store}
|
|
65
63
|
originalPurchaseDate={originalPurchaseDate}
|
package/src/domains/subscription/presentation/screens/components/SubscriptionHeader.types.ts
CHANGED
|
@@ -28,7 +28,6 @@ export interface SubscriptionHeaderProps {
|
|
|
28
28
|
};
|
|
29
29
|
// Additional RevenueCat subscription details
|
|
30
30
|
willRenew?: boolean | null;
|
|
31
|
-
productIdentifier?: string | null;
|
|
32
31
|
periodType?: string | null;
|
|
33
32
|
store?: string | null;
|
|
34
33
|
originalPurchaseDate?: string | null;
|
package/src/domains/subscription/presentation/screens/components/SubscriptionHeaderContent.tsx
CHANGED
|
@@ -12,7 +12,6 @@ interface SubscriptionHeaderContentProps {
|
|
|
12
12
|
translations: SubscriptionHeaderProps["translations"];
|
|
13
13
|
styles: any;
|
|
14
14
|
willRenew?: boolean | null;
|
|
15
|
-
productIdentifier?: string | null;
|
|
16
15
|
periodType?: string | null;
|
|
17
16
|
store?: string | null;
|
|
18
17
|
originalPurchaseDate?: string | null;
|
|
@@ -30,7 +29,6 @@ export const SubscriptionHeaderContent: React.FC<SubscriptionHeaderContentProps>
|
|
|
30
29
|
translations,
|
|
31
30
|
styles,
|
|
32
31
|
willRenew,
|
|
33
|
-
productIdentifier,
|
|
34
32
|
periodType,
|
|
35
33
|
store,
|
|
36
34
|
originalPurchaseDate,
|
|
@@ -78,19 +76,10 @@ export const SubscriptionHeaderContent: React.FC<SubscriptionHeaderContentProps>
|
|
|
78
76
|
valueStyle={styles.value}
|
|
79
77
|
/>
|
|
80
78
|
)}
|
|
81
|
-
{productIdentifier && translations.productLabel && (
|
|
82
|
-
<DetailRow
|
|
83
|
-
label={translations.productLabel}
|
|
84
|
-
value={productIdentifier}
|
|
85
|
-
style={styles.row}
|
|
86
|
-
labelStyle={styles.label}
|
|
87
|
-
valueStyle={styles.value}
|
|
88
|
-
/>
|
|
89
|
-
)}
|
|
90
79
|
{periodType && translations.periodTypeLabel && (
|
|
91
80
|
<DetailRow
|
|
92
81
|
label={translations.periodTypeLabel}
|
|
93
|
-
value={periodType}
|
|
82
|
+
value={periodType === "NORMAL" ? "Standard" : periodType}
|
|
94
83
|
style={styles.row}
|
|
95
84
|
labelStyle={styles.label}
|
|
96
85
|
valueStyle={styles.value}
|
package/src/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ export { useFeatureGate } from "./domains/subscription/presentation/useFeatureGa
|
|
|
58
58
|
export { usePaywallVisibility, paywallControl } from "./domains/subscription/presentation/usePaywallVisibility";
|
|
59
59
|
export { usePremium } from "./domains/subscription/presentation/usePremium";
|
|
60
60
|
export { useSubscriptionStatus } from "./domains/subscription/presentation/useSubscriptionStatus";
|
|
61
|
+
export * from "./domains/subscription/presentation/useSubscriptionStatus.types";
|
|
61
62
|
export * from "./presentation/hooks/feedback/usePaywallFeedback";
|
|
62
63
|
export * from "./presentation/hooks/feedback/useFeedbackSubmit";
|
|
63
64
|
|