@umituz/react-native-design-system 2.9.50 → 2.9.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-design-system",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.52",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -85,26 +85,29 @@ export const DesignSystemProvider: React.FC<DesignSystemProviderProps> = ({
|
|
|
85
85
|
// Determine if we should show loading state
|
|
86
86
|
const isLoading = showLoadingIndicator && (!isInitialized || !fontsLoaded);
|
|
87
87
|
|
|
88
|
+
// Determine content to render based on loading state
|
|
89
|
+
let content: ReactNode;
|
|
90
|
+
|
|
88
91
|
if (isLoading) {
|
|
89
92
|
if (loadingComponent) {
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
content = loadingComponent;
|
|
94
|
+
} else if (splashConfig) {
|
|
95
|
+
content = <SplashScreen {...splashConfig} visible={true} />;
|
|
96
|
+
} else {
|
|
97
|
+
content = (
|
|
98
|
+
<View style={styles.loadingContainer}>
|
|
99
|
+
<ActivityIndicator size="large" />
|
|
100
|
+
</View>
|
|
101
|
+
);
|
|
95
102
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<View style={styles.loadingContainer}>
|
|
99
|
-
<ActivityIndicator size="large" />
|
|
100
|
-
</View>
|
|
101
|
-
);
|
|
103
|
+
} else {
|
|
104
|
+
content = children;
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
return (
|
|
105
108
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
106
109
|
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
|
|
107
|
-
|
|
110
|
+
{content}
|
|
108
111
|
</SafeAreaProvider>
|
|
109
112
|
</GestureHandlerRootView>
|
|
110
113
|
);
|