@umituz/react-native-design-system 2.9.9 → 2.9.10

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.9",
3
+ "version": "2.9.10",
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, and onboarding utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -4,11 +4,13 @@
4
4
  * Used across all modals in the app for consistency
5
5
  */
6
6
 
7
- import React from 'react';
7
+ import React, { useEffect } from 'react';
8
8
  import { View, Modal, StyleSheet, TouchableOpacity, ViewStyle } from 'react-native';
9
9
  import { useAppDesignTokens } from '../theme';
10
10
  import { useResponsive } from '../responsive';
11
11
 
12
+ declare const __DEV__: boolean;
13
+
12
14
  export interface BaseModalProps {
13
15
  visible: boolean;
14
16
  onClose: () => void;
@@ -29,6 +31,18 @@ export const BaseModal: React.FC<BaseModalProps> = ({
29
31
  const tokens = useAppDesignTokens();
30
32
  const { modalLayout } = useResponsive();
31
33
 
34
+ // Debug logging for modal visibility
35
+ useEffect(() => {
36
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
37
+ console.log("[BaseModal] Visibility changed:", {
38
+ visible,
39
+ testID,
40
+ modalWidth: modalLayout.width,
41
+ modalHeight: modalLayout.height,
42
+ });
43
+ }
44
+ }, [visible, testID, modalLayout.width, modalLayout.height]);
45
+
32
46
  const handleBackdropPress = React.useCallback(() => {
33
47
  if (dismissOnBackdrop) {
34
48
  onClose();
@@ -37,6 +51,10 @@ export const BaseModal: React.FC<BaseModalProps> = ({
37
51
 
38
52
  if (!visible) return null;
39
53
 
54
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
55
+ console.log("[BaseModal] Rendering modal content:", { testID });
56
+ }
57
+
40
58
  return (
41
59
  <Modal
42
60
  visible={visible}