@umituz/react-native-subscription 2.14.51 → 2.14.52
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.14.
|
|
3
|
+
"version": "2.14.52",
|
|
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",
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from "react";
|
|
9
|
-
import { View, StyleSheet, ScrollView
|
|
9
|
+
import { View, StyleSheet, ScrollView } from "react-native";
|
|
10
10
|
import {
|
|
11
11
|
useAppDesignTokens,
|
|
12
12
|
AtomicText,
|
|
13
13
|
AtomicIcon,
|
|
14
|
+
AtomicSpinner,
|
|
14
15
|
} from "@umituz/react-native-design-system";
|
|
15
16
|
import type { CreditLog } from "../../domain/types/transaction.types";
|
|
16
17
|
import {
|
|
@@ -54,15 +55,12 @@ export const TransactionList: React.FC<TransactionListProps> = ({
|
|
|
54
55
|
</View>
|
|
55
56
|
|
|
56
57
|
{loading ? (
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{translations.loading}
|
|
64
|
-
</AtomicText>
|
|
65
|
-
</View>
|
|
58
|
+
<AtomicSpinner
|
|
59
|
+
size="lg"
|
|
60
|
+
color="primary"
|
|
61
|
+
text={translations.loading}
|
|
62
|
+
style={styles.stateContainer}
|
|
63
|
+
/>
|
|
66
64
|
) : transactions.length === 0 ? (
|
|
67
65
|
<View style={styles.stateContainer}>
|
|
68
66
|
<AtomicIcon name="inbox" size="xl" color="secondary" />
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from "react";
|
|
10
|
-
import { View, StyleSheet,
|
|
10
|
+
import { View, StyleSheet, TouchableOpacity } from "react-native";
|
|
11
11
|
import {
|
|
12
12
|
useSafeAreaInsets,
|
|
13
13
|
useAppDesignTokens,
|
|
14
14
|
AtomicText,
|
|
15
15
|
AtomicIcon,
|
|
16
|
+
AtomicSpinner,
|
|
16
17
|
ScreenLayout,
|
|
17
18
|
} from "@umituz/react-native-design-system";
|
|
18
19
|
import {
|
|
@@ -79,15 +80,13 @@ export const WalletScreen: React.FC<WalletScreenProps> = ({ config }) => {
|
|
|
79
80
|
const renderBalance = () => {
|
|
80
81
|
if (config.balanceLoading) {
|
|
81
82
|
return (
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</AtomicText>
|
|
90
|
-
</View>
|
|
83
|
+
<AtomicSpinner
|
|
84
|
+
size="xl"
|
|
85
|
+
color="primary"
|
|
86
|
+
text={config.translations.loading}
|
|
87
|
+
fullContainer
|
|
88
|
+
style={styles.loadingContainer}
|
|
89
|
+
/>
|
|
91
90
|
);
|
|
92
91
|
}
|
|
93
92
|
|
|
@@ -135,13 +134,6 @@ const styles = StyleSheet.create({
|
|
|
135
134
|
marginRight: 16,
|
|
136
135
|
},
|
|
137
136
|
loadingContainer: {
|
|
138
|
-
|
|
139
|
-
alignItems: "center",
|
|
140
|
-
justifyContent: "center",
|
|
141
|
-
gap: 12,
|
|
142
|
-
},
|
|
143
|
-
loadingText: {
|
|
144
|
-
fontSize: 14,
|
|
145
|
-
fontWeight: "500",
|
|
137
|
+
minHeight: 200,
|
|
146
138
|
},
|
|
147
139
|
});
|