@umituz/react-native-design-system 4.23.94 → 4.23.95
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 +1 -1
- package/src/molecules/BaseModal.tsx +1 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.95",
|
|
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",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Used across all modals in the app for consistency
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React, {
|
|
7
|
+
import React, { useCallback } 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';
|
|
@@ -35,18 +35,6 @@ export const BaseModal: React.FC<BaseModalProps> = ({
|
|
|
35
35
|
const tokens = useAppDesignTokens();
|
|
36
36
|
const { modalLayout } = useResponsive();
|
|
37
37
|
|
|
38
|
-
// Debug logging for modal visibility
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
if (__DEV__) {
|
|
41
|
-
console.log({
|
|
42
|
-
visible,
|
|
43
|
-
testID,
|
|
44
|
-
modalWidth: modalLayout.width,
|
|
45
|
-
modalHeight: modalLayout.height,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}, [visible, testID, modalLayout.width, modalLayout.height]);
|
|
49
|
-
|
|
50
38
|
const handleBackdropPress = useCallback(() => {
|
|
51
39
|
if (dismissOnBackdrop) {
|
|
52
40
|
onClose();
|
|
@@ -55,9 +43,6 @@ export const BaseModal: React.FC<BaseModalProps> = ({
|
|
|
55
43
|
|
|
56
44
|
if (!visible) return null;
|
|
57
45
|
|
|
58
|
-
if (__DEV__) {
|
|
59
|
-
}
|
|
60
|
-
|
|
61
46
|
return (
|
|
62
47
|
<Modal
|
|
63
48
|
visible={visible}
|