@umituz/react-native-subscription 2.39.0 → 2.39.1
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/paywall/components/PaywallScreen.styles.ts +57 -0
- package/src/domains/paywall/components/PaywallScreen.tsx +1 -1
- package/src/domains/subscription/presentation/components/feedback/PaywallFeedbackScreen.tsx +3 -4
- package/src/domains/subscription/presentation/components/feedback/PaywallFeedbackScreen.types.ts +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-subscription",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.1",
|
|
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",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
|
+
|
|
3
|
+
export const paywallScreenStyles = StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
flex: 1,
|
|
6
|
+
},
|
|
7
|
+
heroContainer: {
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
marginBottom: 24,
|
|
10
|
+
},
|
|
11
|
+
heroImage: {
|
|
12
|
+
width: 120,
|
|
13
|
+
height: 120,
|
|
14
|
+
borderRadius: 60,
|
|
15
|
+
},
|
|
16
|
+
header: {
|
|
17
|
+
paddingHorizontal: 24,
|
|
18
|
+
marginBottom: 24,
|
|
19
|
+
},
|
|
20
|
+
title: {
|
|
21
|
+
marginBottom: 8,
|
|
22
|
+
},
|
|
23
|
+
subtitle: {
|
|
24
|
+
lineHeight: 22,
|
|
25
|
+
},
|
|
26
|
+
plans: {
|
|
27
|
+
paddingHorizontal: 16,
|
|
28
|
+
marginBottom: 16,
|
|
29
|
+
},
|
|
30
|
+
loading: {
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
paddingVertical: 32,
|
|
33
|
+
},
|
|
34
|
+
loadingText: {
|
|
35
|
+
marginTop: 12,
|
|
36
|
+
},
|
|
37
|
+
stickyFooter: {
|
|
38
|
+
position: "absolute",
|
|
39
|
+
bottom: 0,
|
|
40
|
+
left: 0,
|
|
41
|
+
right: 0,
|
|
42
|
+
paddingHorizontal: 16,
|
|
43
|
+
paddingTop: 12,
|
|
44
|
+
backgroundColor: "#000",
|
|
45
|
+
},
|
|
46
|
+
cta: {
|
|
47
|
+
borderRadius: 14,
|
|
48
|
+
paddingVertical: 16,
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
},
|
|
51
|
+
ctaDisabled: {
|
|
52
|
+
opacity: 0.6,
|
|
53
|
+
},
|
|
54
|
+
ctaText: {
|
|
55
|
+
fontWeight: "600",
|
|
56
|
+
},
|
|
57
|
+
});
|
|
@@ -12,7 +12,7 @@ import { useSafeAreaInsets } from "@umituz/react-native-design-system/safe-area"
|
|
|
12
12
|
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
13
|
import { Image } from "expo-image";
|
|
14
14
|
import { PlanCard } from "./PlanCard";
|
|
15
|
-
import {
|
|
15
|
+
import { paywallScreenStyles as styles } from "./PaywallScreen.styles";
|
|
16
16
|
import { PaywallFeatures } from "./PaywallFeatures";
|
|
17
17
|
import { PaywallFooter } from "./PaywallFooter";
|
|
18
18
|
import { usePaywallActions } from "../hooks/usePaywallActions";
|
|
@@ -13,10 +13,9 @@ import { useSafeAreaInsets } from "@umituz/react-native-design-system/safe-area"
|
|
|
13
13
|
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
14
14
|
import { usePaywallFeedback } from "../../../../../presentation/hooks/feedback/usePaywallFeedback";
|
|
15
15
|
import { FeedbackOption } from "./FeedbackOption";
|
|
16
|
-
import type { PaywallFeedbackScreenProps } from "./PaywallFeedbackScreen.types";
|
|
17
|
-
import type { PaywallFeedbackTranslations } from "./PaywallFeedbackModal.types";
|
|
16
|
+
import type { PaywallFeedbackScreenProps, PaywallFeedbackTranslations } from "./PaywallFeedbackScreen.types";
|
|
18
17
|
|
|
19
|
-
// Re-export
|
|
18
|
+
// Re-export types for convenience
|
|
20
19
|
export type { PaywallFeedbackTranslations, PaywallFeedbackScreenProps };
|
|
21
20
|
|
|
22
21
|
const FEEDBACK_OPTION_IDS = [
|
|
@@ -192,6 +191,6 @@ const createScreenStyles = (tokens: any, insets: any) => ({
|
|
|
192
191
|
alignItems: 'center' as const,
|
|
193
192
|
},
|
|
194
193
|
submitText: {
|
|
195
|
-
fontWeight: 600,
|
|
194
|
+
fontWeight: "600",
|
|
196
195
|
},
|
|
197
196
|
});
|
package/src/domains/subscription/presentation/components/feedback/PaywallFeedbackScreen.types.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
export interface PaywallFeedbackTranslations {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle: string;
|
|
4
|
+
submit: string;
|
|
5
|
+
otherPlaceholder: string;
|
|
6
|
+
reasons: {
|
|
7
|
+
too_expensive: string;
|
|
8
|
+
no_need: string;
|
|
9
|
+
trying_out: string;
|
|
10
|
+
technical_issues: string;
|
|
11
|
+
other: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
2
14
|
|
|
3
15
|
export interface PaywallFeedbackScreenProps {
|
|
4
16
|
onClose: () => void;
|