@umituz/react-native-splash 1.0.3 → 1.0.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": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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",
|
|
@@ -221,8 +221,29 @@ const getStyles = (
|
|
|
221
221
|
insets: { top: number; bottom: number },
|
|
222
222
|
backgroundColor?: string,
|
|
223
223
|
gradientColors?: string[],
|
|
224
|
-
) =>
|
|
225
|
-
|
|
224
|
+
) => {
|
|
225
|
+
// Safety check: Return empty styles if tokens or responsive are not ready
|
|
226
|
+
if (!tokens || !responsive || !tokens.spacing || !tokens.colors || !responsive.horizontalPadding) {
|
|
227
|
+
return StyleSheet.create({
|
|
228
|
+
container: { flex: 1 },
|
|
229
|
+
backgroundGradient: {},
|
|
230
|
+
content: {},
|
|
231
|
+
logoContainer: {},
|
|
232
|
+
logoBackground: {},
|
|
233
|
+
textContainer: {},
|
|
234
|
+
appName: {},
|
|
235
|
+
tagline: {},
|
|
236
|
+
loadingContainer: {},
|
|
237
|
+
loadingBar: {},
|
|
238
|
+
loadingProgress: {},
|
|
239
|
+
loadingText: {},
|
|
240
|
+
footer: {},
|
|
241
|
+
footerText: {},
|
|
242
|
+
versionText: {},
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return StyleSheet.create({
|
|
226
247
|
container: {
|
|
227
248
|
flex: 1,
|
|
228
249
|
backgroundColor: backgroundColor || tokens.colors.primary,
|
|
@@ -325,4 +346,5 @@ const getStyles = (
|
|
|
325
346
|
fontSize: responsive.getFontSize(STATIC_TOKENS.typography.caption.fontSize ?? 12),
|
|
326
347
|
},
|
|
327
348
|
});
|
|
349
|
+
};
|
|
328
350
|
|