@umituz/react-native-splash 2.1.0 → 2.1.2

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.0",
3
+ "version": "2.1.2",
4
4
  "description": "Ultra minimal splash screen for React Native apps. Just icon, name, and tagline.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -31,7 +31,16 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
31
31
  }) => {
32
32
  const insets = useSafeAreaInsets();
33
33
 
34
- if (!visible) return null;
34
+ React.useEffect(() => {
35
+ if (__DEV__) {
36
+ console.log(`[SplashScreen] Mounted - appName: ${appName}, visible: ${visible}`);
37
+ }
38
+ }, [appName, visible]);
39
+
40
+ if (!visible) {
41
+ if (__DEV__) console.log('[SplashScreen] Not visible, returning null');
42
+ return null;
43
+ }
35
44
 
36
45
  const content = (
37
46
  <View style={[styles.content, { paddingTop: insets.top, paddingBottom: insets.bottom }]}>