@umituz/react-native-splash 1.6.1 → 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.1",
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: readonly string[] = gradientColors || [
70
- finalBackgroundColor!,
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;