@umituz/react-native-subscription 2.11.19 → 2.11.20
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.11.
|
|
3
|
+
"version": "2.11.20",
|
|
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",
|
|
@@ -69,7 +69,5 @@
|
|
|
69
69
|
"README.md",
|
|
70
70
|
"LICENSE"
|
|
71
71
|
],
|
|
72
|
-
"dependencies": {
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
}
|
|
72
|
+
"dependencies": {}
|
|
73
|
+
}
|
|
@@ -11,6 +11,7 @@ import type { PurchasesPackage } from "react-native-purchases";
|
|
|
11
11
|
import { SubscriptionModalHeader } from "./SubscriptionModalHeader";
|
|
12
12
|
import { SubscriptionPackageList } from "./SubscriptionPackageList";
|
|
13
13
|
import { SubscriptionFooter } from "./SubscriptionFooter";
|
|
14
|
+
import { PaywallFeaturesList } from "./PaywallFeaturesList";
|
|
14
15
|
import { useSubscriptionModal } from "../../hooks/useSubscriptionModal";
|
|
15
16
|
|
|
16
17
|
export interface SubscriptionModalProps {
|
|
@@ -40,6 +41,8 @@ export interface SubscriptionModalProps {
|
|
|
40
41
|
billingPeriodLabel?: string;
|
|
41
42
|
totalPriceLabel?: string;
|
|
42
43
|
perMonthLabel?: string;
|
|
44
|
+
/** Optional: List of premium features to display */
|
|
45
|
+
features?: Array<{ icon: string; text: string }>;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
export const SubscriptionModal: React.FC<SubscriptionModalProps> = React.memo((props) => {
|
|
@@ -67,6 +70,7 @@ export const SubscriptionModal: React.FC<SubscriptionModalProps> = React.memo((p
|
|
|
67
70
|
billingPeriodLabel,
|
|
68
71
|
totalPriceLabel,
|
|
69
72
|
perMonthLabel,
|
|
73
|
+
features = [],
|
|
70
74
|
} = props;
|
|
71
75
|
|
|
72
76
|
const {
|
|
@@ -96,6 +100,13 @@ export const SubscriptionModal: React.FC<SubscriptionModalProps> = React.memo((p
|
|
|
96
100
|
showsVerticalScrollIndicator={false}
|
|
97
101
|
bounces={false}
|
|
98
102
|
>
|
|
103
|
+
{features.length > 0 && (
|
|
104
|
+
<PaywallFeaturesList
|
|
105
|
+
features={features}
|
|
106
|
+
containerStyle={styles.featuresList}
|
|
107
|
+
/>
|
|
108
|
+
)}
|
|
109
|
+
|
|
99
110
|
<SubscriptionPackageList
|
|
100
111
|
packages={packages}
|
|
101
112
|
isLoading={isLoading}
|
|
@@ -146,4 +157,8 @@ const styles = StyleSheet.create({
|
|
|
146
157
|
flexGrow: 1,
|
|
147
158
|
paddingBottom: 32,
|
|
148
159
|
},
|
|
160
|
+
featuresList: {
|
|
161
|
+
paddingHorizontal: 24,
|
|
162
|
+
marginBottom: 24,
|
|
163
|
+
},
|
|
149
164
|
});
|