@umituz/react-native-design-system 4.25.45 → 4.25.47

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": "4.25.45",
3
+ "version": "4.25.47",
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",
@@ -121,3 +121,10 @@ export {
121
121
  EXTENSION_TO_MIME_TYPE,
122
122
  MIME_TYPE_TO_EXTENSION,
123
123
  } from './infrastructure/utils/validation/mime-types.constants';
124
+
125
+ // =============================================================================
126
+ // PRESENTATION LAYER - AtomicImage Component
127
+ // =============================================================================
128
+
129
+ export { AtomicImage } from '../atoms/image/AtomicImage';
130
+ export type { AtomicImageProps } from '../atoms/image/AtomicImage';
@@ -1,4 +1,4 @@
1
- import React, { forwardRef, useImperativeHandle, useState, useCallback, useEffect } from 'react';
1
+ import React, { forwardRef, useImperativeHandle, useState, useCallback, useMemo } from 'react';
2
2
  import { Modal, View, StyleSheet, Pressable } from 'react-native';
3
3
  import { useAppDesignTokens } from '../../../theme';
4
4
  import { useSafeAreaInsets } from '../../../safe-area';
@@ -30,17 +30,6 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
30
30
 
31
31
  const sheetHeight = PRESET_HEIGHTS[preset] || PRESET_HEIGHTS.medium;
32
32
 
33
- useEffect(() => {
34
- if (__DEV__) {
35
- console.log({
36
- visible,
37
- preset,
38
- hasChildren: !!children,
39
- sheetHeight,
40
- });
41
- }
42
- }, [visible, preset, children, sheetHeight]);
43
-
44
33
  const present = useCallback(() => {
45
34
  setVisible(true);
46
35
  }, []);
@@ -62,7 +51,7 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
62
51
  collapse: () => dismiss(),
63
52
  }));
64
53
 
65
- const styles = StyleSheet.create({
54
+ const styles = useMemo(() => StyleSheet.create({
66
55
  overlay: {
67
56
  flex: 1,
68
57
  backgroundColor: tokens.colors.modalOverlay,
@@ -87,7 +76,7 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
87
76
  content: {
88
77
  flex: 1,
89
78
  },
90
- });
79
+ }), [sheetHeight, backgroundColor, tokens.colors, borderRadius, insets.bottom]);
91
80
 
92
81
  return (
93
82
  <Modal