@umituz/react-native-splash 1.6.2 → 1.6.3
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": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Generic splash screen for React Native apps with animations, gradients, and customizable branding. SOLID, DRY, KISS principles applied.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -66,9 +66,9 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
66
66
|
? undefined
|
|
67
67
|
: backgroundColor || tokens.colors.primary;
|
|
68
68
|
|
|
69
|
-
const finalGradientColors:
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
const finalGradientColors: string[] = gradientColors
|
|
70
|
+
? [...gradientColors]
|
|
71
|
+
: [finalBackgroundColor!];
|
|
72
72
|
|
|
73
73
|
// Use LinearGradient only if gradientColors provided (length > 1)
|
|
74
74
|
const hasGradient = gradientColors && gradientColors.length > 1;
|
|
@@ -111,7 +111,7 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
111
111
|
<View style={styles.container}>
|
|
112
112
|
{hasGradient ? (
|
|
113
113
|
<LinearGradient
|
|
114
|
-
colors={finalGradientColors
|
|
114
|
+
colors={finalGradientColors}
|
|
115
115
|
start={{ x: 0, y: 0 }}
|
|
116
116
|
end={{ x: 1, y: 1 }}
|
|
117
117
|
style={styles.gradient}
|