@umituz/react-native-subscription 2.11.28 → 2.12.0
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.
|
|
3
|
+
"version": "2.12.0",
|
|
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.
|
|
50
|
+
"@umituz/react-native-design-system": "^2.2.0",
|
|
51
51
|
"@umituz/react-native-firebase": "*",
|
|
52
52
|
"@umituz/react-native-legal": "*",
|
|
53
53
|
"@umituz/react-native-localization": "*",
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet, ScrollView } from "react-native";
|
|
8
|
-
import { AtomicText, AtomicButton } from "@umituz/react-native-design-system";
|
|
9
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicButton, Grid, useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
10
9
|
import { useLocalization } from "@umituz/react-native-localization";
|
|
11
10
|
import { CreditsPackageCard } from "./CreditsPackageCard";
|
|
12
11
|
import { PaywallLegalFooter } from "./PaywallLegalFooter";
|
|
@@ -38,7 +37,7 @@ export const CreditsTabContent: React.FC<CreditsTabContentProps> = React.memo(
|
|
|
38
37
|
creditsInfoText,
|
|
39
38
|
processingText,
|
|
40
39
|
}) => {
|
|
41
|
-
const tokens =
|
|
40
|
+
const tokens = useResponsiveDesignTokens();
|
|
42
41
|
const { t } = useLocalization();
|
|
43
42
|
|
|
44
43
|
const needsCredits = requiredCredits && requiredCredits > currentCredits;
|
|
@@ -72,10 +71,10 @@ export const CreditsTabContent: React.FC<CreditsTabContentProps> = React.memo(
|
|
|
72
71
|
|
|
73
72
|
<ScrollView
|
|
74
73
|
style={styles.scrollView}
|
|
75
|
-
contentContainerStyle={styles.scrollContent}
|
|
74
|
+
contentContainerStyle={[styles.scrollContent, { paddingHorizontal: tokens.spacing.lg, paddingBottom: tokens.spacing.md }]}
|
|
76
75
|
showsVerticalScrollIndicator={false}
|
|
77
76
|
>
|
|
78
|
-
<
|
|
77
|
+
<Grid mobileColumns={1} tabletColumns={2} gap={tokens.spacing.sm}>
|
|
79
78
|
{packages.map((pkg) => (
|
|
80
79
|
<CreditsPackageCard
|
|
81
80
|
key={pkg.id}
|
|
@@ -84,7 +83,7 @@ export const CreditsTabContent: React.FC<CreditsTabContentProps> = React.memo(
|
|
|
84
83
|
onSelect={() => onSelectPackage(pkg.id)}
|
|
85
84
|
/>
|
|
86
85
|
))}
|
|
87
|
-
</
|
|
86
|
+
</Grid>
|
|
88
87
|
</ScrollView>
|
|
89
88
|
|
|
90
89
|
<View style={styles.footer}>
|
|
@@ -116,13 +115,7 @@ const styles = StyleSheet.create({
|
|
|
116
115
|
scrollView: {
|
|
117
116
|
flex: 1,
|
|
118
117
|
},
|
|
119
|
-
scrollContent: {
|
|
120
|
-
paddingHorizontal: 24,
|
|
121
|
-
paddingBottom: 16,
|
|
122
|
-
},
|
|
123
|
-
packagesContainer: {
|
|
124
|
-
gap: 12,
|
|
125
|
-
},
|
|
118
|
+
scrollContent: {},
|
|
126
119
|
footer: {
|
|
127
120
|
padding: 24,
|
|
128
121
|
paddingTop: 16,
|