@umituz/react-native-subscription 2.2.49 → 2.3.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
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-subscription",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.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",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"typecheck": "
|
|
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": "
|
|
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": ">=
|
|
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": ">=
|
|
42
|
+
"react-native-purchases": ">=7.0.0",
|
|
40
43
|
"react-native-safe-area-context": ">=4.0.0"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@react-native-
|
|
45
|
-
"@react-native-
|
|
46
|
-
"@react-native-
|
|
47
|
-
"@react-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
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
|
-
"
|
|
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-
|
|
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
|
+
}
|
|
@@ -97,17 +97,6 @@ export const SubscriptionModal: React.FC<SubscriptionModalProps> = React.memo((p
|
|
|
97
97
|
onClose,
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
if (__DEV__) {
|
|
101
|
-
console.log("[SubscriptionModal] Rendering", {
|
|
102
|
-
visible,
|
|
103
|
-
variant,
|
|
104
|
-
packagesCount: packages.length,
|
|
105
|
-
featuresCount: features.length,
|
|
106
|
-
isLoading,
|
|
107
|
-
layoutConfig,
|
|
108
|
-
styleConfig: styles_,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
100
|
|
|
112
101
|
if (!visible) return null;
|
|
113
102
|
|
|
@@ -55,21 +55,12 @@ export const SubscriptionModalOverlay: React.FC<SubscriptionModalOverlayProps> =
|
|
|
55
55
|
const tokens = useAppDesignTokens();
|
|
56
56
|
const config = { ...DEFAULT_LAYOUT, ...layoutConfig };
|
|
57
57
|
|
|
58
|
-
if (__DEV__) {
|
|
59
|
-
console.log("[SubscriptionModalOverlay] Rendering", {
|
|
60
|
-
variant,
|
|
61
|
-
visible,
|
|
62
|
-
layoutConfig: config,
|
|
63
|
-
screenHeight: SCREEN_HEIGHT,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
58
|
|
|
67
59
|
const isFullScreen = variant === "fullscreen";
|
|
68
60
|
|
|
69
61
|
const getFullscreenContentStyle = (): ViewStyle => ({
|
|
70
62
|
width: Math.min(SCREEN_WIDTH * (config.widthPercent ?? 0.92), config.maxWidth ?? 480),
|
|
71
|
-
|
|
72
|
-
height: SCREEN_HEIGHT * (config.maxHeightPercent ?? 0.88),
|
|
63
|
+
maxHeight: SCREEN_HEIGHT * (config.maxHeightPercent ?? 0.88),
|
|
73
64
|
borderRadius: config.borderRadius ?? 32,
|
|
74
65
|
overflow: "hidden",
|
|
75
66
|
borderWidth: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { View, StyleSheet, ActivityIndicator } from "react-native";
|
|
3
3
|
import { AtomicText } from "@umituz/react-native-design-system";
|
|
4
4
|
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
@@ -27,14 +27,6 @@ export const SubscriptionPackageList: React.FC<SubscriptionPackageListProps> = R
|
|
|
27
27
|
const hasPackages = packages.length > 0;
|
|
28
28
|
const showLoading = isLoading && !hasPackages;
|
|
29
29
|
|
|
30
|
-
// Log state for debugging production issues
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
console.log("[SubscriptionPackageList] render state:", {
|
|
33
|
-
isLoading,
|
|
34
|
-
packagesCount: packages.length,
|
|
35
|
-
hasSelectedPkg: !!selectedPkg,
|
|
36
|
-
});
|
|
37
|
-
}, [isLoading, packages.length, selectedPkg]);
|
|
38
30
|
|
|
39
31
|
if (showLoading) {
|
|
40
32
|
return (
|
|
@@ -51,8 +43,6 @@ export const SubscriptionPackageList: React.FC<SubscriptionPackageListProps> = R
|
|
|
51
43
|
}
|
|
52
44
|
|
|
53
45
|
if (!hasPackages) {
|
|
54
|
-
// Log warning for debugging
|
|
55
|
-
console.warn("[SubscriptionPackageList] No packages available to display");
|
|
56
46
|
return (
|
|
57
47
|
<View style={styles.centerContent}>
|
|
58
48
|
<AtomicText
|