@umituz/react-native-splash 2.1.4 → 2.1.5
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-splash",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Ultra minimal splash screen for React Native apps with design system integration and theme provider pattern.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React, { useEffect, useState } from "react";
|
|
8
|
-
import { View, Image, StyleSheet
|
|
8
|
+
import { View, Image, StyleSheet } from "react-native";
|
|
9
9
|
import { LinearGradient } from "expo-linear-gradient";
|
|
10
10
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
11
11
|
import { AtomicText, useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
@@ -22,7 +22,6 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
22
22
|
icon,
|
|
23
23
|
appName = "",
|
|
24
24
|
tagline = "",
|
|
25
|
-
showLoading = true,
|
|
26
25
|
visible = true,
|
|
27
26
|
maxDuration,
|
|
28
27
|
onTimeout,
|
|
@@ -124,12 +123,6 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
124
123
|
</AtomicText>
|
|
125
124
|
) : null}
|
|
126
125
|
</View>
|
|
127
|
-
|
|
128
|
-
{showLoading ? (
|
|
129
|
-
<View style={[styles.loading, { paddingBottom: tokens.spacing.xxl }]}>
|
|
130
|
-
<ActivityIndicator color={colors.loadingColor} size="small" />
|
|
131
|
-
</View>
|
|
132
|
-
) : null}
|
|
133
126
|
</View>
|
|
134
127
|
);
|
|
135
128
|
|
|
@@ -185,9 +178,6 @@ const styles = StyleSheet.create({
|
|
|
185
178
|
subtitle: {
|
|
186
179
|
textAlign: "center",
|
|
187
180
|
},
|
|
188
|
-
loading: {
|
|
189
|
-
alignItems: "center",
|
|
190
|
-
},
|
|
191
181
|
timeoutWarning: {
|
|
192
182
|
textAlign: "center",
|
|
193
183
|
},
|
|
@@ -10,7 +10,6 @@ import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
|
10
10
|
interface SplashColors {
|
|
11
11
|
backgroundColor: string;
|
|
12
12
|
textColor: string;
|
|
13
|
-
loadingColor: string;
|
|
14
13
|
iconPlaceholderBg: string;
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -38,7 +37,6 @@ export const SplashThemeProvider = ({
|
|
|
38
37
|
const defaults: SplashColors = {
|
|
39
38
|
backgroundColor: tokens.colors.primary,
|
|
40
39
|
textColor: tokens.colors.onPrimary,
|
|
41
|
-
loadingColor: tokens.colors.onPrimary,
|
|
42
40
|
iconPlaceholderBg: tokens.colors.onPrimary + "30",
|
|
43
41
|
};
|
|
44
42
|
|