@umituz/react-native-subscription 3.1.22 → 3.1.23

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": "3.1.22",
3
+ "version": "3.1.23",
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",
@@ -9,6 +9,7 @@
9
9
  import React, { useMemo } from "react";
10
10
  import { View, ScrollView } from "react-native";
11
11
  import { useSafeAreaInsets } from "@umituz/react-native-design-system/safe-area";
12
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
12
13
  import { usePaywallFeedback } from "../../../../../presentation/hooks/feedback/usePaywallFeedback";
13
14
  import type { PaywallFeedbackScreenProps, PaywallFeedbackTranslations } from "./PaywallFeedbackScreen.types";
14
15
  import {
@@ -27,6 +28,7 @@ export const PaywallFeedbackScreen: React.FC<PaywallFeedbackScreenProps> = React
27
28
  onSubmit,
28
29
  }) => {
29
30
  const insets = useSafeAreaInsets();
31
+ const tokens = useAppDesignTokens();
30
32
 
31
33
  const {
32
34
  selectedReason,
@@ -41,13 +43,13 @@ export const PaywallFeedbackScreen: React.FC<PaywallFeedbackScreenProps> = React
41
43
  const screenStyles = useMemo(() => createScreenStyles(), []);
42
44
 
43
45
  return (
44
- <View style={[screenStyles.container, { backgroundColor: 'white', opacity: 1 }]}>
46
+ <View style={[screenStyles.container, { backgroundColor: tokens.colors.backgroundPrimary }]}>
45
47
  {/* Close button */}
46
48
  <FeedbackCloseButton
47
49
  onPress={handleSkip}
48
50
  topInset={insets.top}
49
- backgroundColor="rgba(0,0,0,0.05)"
50
- iconColor="#000"
51
+ backgroundColor={tokens.colors.surfaceSecondary}
52
+ iconColor={tokens.colors.textPrimary}
51
53
  />
52
54
 
53
55
  {/* Scrollable content */}
@@ -60,8 +62,8 @@ export const PaywallFeedbackScreen: React.FC<PaywallFeedbackScreenProps> = React
60
62
  <FeedbackHeader
61
63
  title={translations.title}
62
64
  subtitle={translations.subtitle}
63
- titleColor="#000"
64
- subtitleColor="#666"
65
+ titleColor={tokens.colors.textPrimary}
66
+ subtitleColor={tokens.colors.textSecondary}
65
67
  style={screenStyles.header}
66
68
  />
67
69
 
@@ -81,8 +83,8 @@ export const PaywallFeedbackScreen: React.FC<PaywallFeedbackScreenProps> = React
81
83
  <FeedbackSubmitButton
82
84
  title={translations.submit}
83
85
  canSubmit={canSubmit}
84
- backgroundColor="#007AFF"
85
- textColor="#FFF"
86
+ backgroundColor={tokens.colors.primary}
87
+ textColor={tokens.colors.textPrimary}
86
88
  onPress={handleSubmit}
87
89
  bottomInset={insets.bottom}
88
90
  />