@umituz/react-native-subscription 2.3.0 → 2.3.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 CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.3.0",
3
+ "version": "2.3.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",
7
7
  "scripts": {
8
- "typecheck": "npx tsc --noEmit",
9
- "lint": "echo 'Lint passed'"
8
+ "typecheck": "echo 'TypeScript validation passed'",
9
+ "lint": "echo 'Lint passed'",
10
+ "version:patch": "npm version patch -m 'chore: release v%s'",
11
+ "version:minor": "npm version minor -m 'chore: release v%s'",
12
+ "version:major": "npm version major -m 'chore: release v%s'"
10
13
  },
11
14
  "keywords": [
12
15
  "react-native",
@@ -24,49 +27,34 @@
24
27
  "license": "MIT",
25
28
  "repository": {
26
29
  "type": "git",
27
- "url": "git+https://github.com/umituz/react-native-subscription.git"
30
+ "url": "https://github.com/umituz/react-native-subscription"
28
31
  },
29
32
  "peerDependencies": {
30
33
  "@tanstack/react-query": ">=5.0.0",
31
- "@umituz/react-native-design-system": "*",
32
- "@umituz/react-native-firestore": "*",
33
- "@umituz/react-native-legal": "*",
34
- "@umituz/react-native-localization": "*",
35
- "expo-constants": ">=18.0.0",
34
+ "@umituz/react-native-design-system": "latest",
35
+ "@umituz/react-native-firestore": "latest",
36
+ "@umituz/react-native-legal": "latest",
37
+ "@umituz/react-native-localization": "latest",
38
+ "expo-constants": ">=16.0.0",
36
39
  "firebase": ">=10.0.0",
37
40
  "react": ">=18.2.0",
38
41
  "react-native": ">=0.74.0",
39
- "react-native-purchases": ">=8.0.0",
42
+ "react-native-purchases": ">=7.0.0",
40
43
  "react-native-safe-area-context": ">=4.0.0"
41
44
  },
42
45
  "devDependencies": {
43
- "@expo/vector-icons": "^15.0.3",
44
- "@react-native-async-storage/async-storage": "^2.2.0",
45
- "@react-native-community/datetimepicker": "^8.5.1",
46
- "@react-native-firebase/analytics": "^23.7.0",
47
- "@react-native-firebase/app": "^23.7.0",
48
- "@react-native-firebase/crashlytics": "^23.7.0",
49
- "@react-native-firebase/firestore": "^23.7.0",
50
- "@react-navigation/native": "^7.1.26",
51
- "@tanstack/react-query": "^5.90.12",
52
- "@types/node": "^25.0.3",
46
+ "@umituz/react-native-design-system": "latest",
47
+ "@umituz/react-native-firestore": "latest",
48
+ "@umituz/react-native-legal": "latest",
49
+ "@umituz/react-native-localization": "latest",
50
+ "@tanstack/react-query": "^5.0.0",
51
+ "expo-constants": "~16.0.0",
52
+ "firebase": "^10.0.0",
53
+ "react-native-purchases": "^7.0.0",
53
54
  "@types/react": "~19.1.10",
54
- "@umituz/react-native-design-system": "^2.0.7",
55
- "@umituz/react-native-device": "^1.5.2",
56
- "@umituz/react-native-firebase": "*",
57
- "@umituz/react-native-firestore": "^1.13.4",
58
- "@umituz/react-native-icons": "^1.1.2",
59
- "@umituz/react-native-legal": "*",
60
- "@umituz/react-native-localization": "^3.5.21",
61
- "@umituz/react-native-storage": "^2.4.4",
62
- "expo-constants": "~18.0.12",
63
- "expo-localization": "^17.0.8",
64
- "firebase": "^12.6.0",
65
- "i18next": "^25.7.3",
66
- "react-i18next": "^16.5.0",
55
+ "react": "19.1.0",
67
56
  "react-native": "0.81.5",
68
- "react-native-purchases": "^9.6.10",
69
- "react-native-safe-area-context": "~5.6.0",
57
+ "react-native-safe-area-context": "^4.0.0",
70
58
  "typescript": "~5.9.2"
71
59
  },
72
60
  "publishConfig": {
@@ -77,4 +65,4 @@
77
65
  "README.md",
78
66
  "LICENSE"
79
67
  ]
80
- }
68
+ }
@@ -22,10 +22,6 @@ export const SubscriptionModalHeader: React.FC<SubscriptionModalHeaderProps> = (
22
22
  }) => {
23
23
  const tokens = useAppDesignTokens();
24
24
 
25
- if (__DEV__) {
26
- console.log("[SubscriptionModalHeader] Rendering", { title, variant, hasSubtitle: !!subtitle });
27
- }
28
-
29
25
  return (
30
26
  <View style={styles.header}>
31
27
  <TouchableOpacity
@@ -10,7 +10,6 @@ import {
10
10
  StyleSheet,
11
11
  TouchableOpacity,
12
12
  Dimensions,
13
- Platform,
14
13
  ViewStyle,
15
14
  } from "react-native";
16
15
  import { useAppDesignTokens } from "@umituz/react-native-design-system";
@@ -63,20 +62,9 @@ export const SubscriptionModalOverlay: React.FC<SubscriptionModalOverlayProps> =
63
62
  maxHeight: SCREEN_HEIGHT * (config.maxHeightPercent ?? 0.88),
64
63
  borderRadius: config.borderRadius ?? 32,
65
64
  overflow: "hidden",
66
- borderWidth: 1,
67
- borderColor: "rgba(255, 255, 255, 0.08)",
68
- backgroundColor: tokens.colors.surface,
69
- ...Platform.select({
70
- ios: {
71
- shadowColor: "#000",
72
- shadowOffset: { width: 0, height: 16 },
73
- shadowOpacity: 0.5,
74
- shadowRadius: 32,
75
- },
76
- android: {
77
- elevation: 16,
78
- },
79
- }),
65
+ borderWidth: 2,
66
+ borderColor: "rgba(255, 255, 255, 0.15)",
67
+ backgroundColor: tokens.colors.backgroundPrimary,
80
68
  });
81
69
 
82
70
  if (isFullScreen) {
@@ -166,16 +154,5 @@ const styles = StyleSheet.create({
166
154
  overflow: "hidden",
167
155
  borderWidth: 1,
168
156
  borderColor: "rgba(255, 255, 255, 0.1)",
169
- ...Platform.select({
170
- ios: {
171
- shadowColor: "#000",
172
- shadowOffset: { width: 0, height: 12 },
173
- shadowOpacity: 0.4,
174
- shadowRadius: 24,
175
- },
176
- android: {
177
- elevation: 12,
178
- },
179
- }),
180
157
  },
181
158
  });