@umituz/react-native-design-system 2.6.40 → 2.6.42

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.6.40",
3
+ "version": "2.6.42",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -309,6 +309,7 @@ export {
309
309
  AlertModal,
310
310
  AlertContainer,
311
311
  AlertProvider,
312
+ AlertService,
312
313
  useAlert,
313
314
  alertService,
314
315
  AlertType,
@@ -76,15 +76,29 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
76
76
 
77
77
  useImperativeHandle(ref, () => ({
78
78
  present: () => {
79
+ if (__DEV__) console.log('[BottomSheetModal] present() called', { refExists: !!modalRef.current });
79
80
  modalRef.current?.present();
80
81
  },
81
- dismiss: () => modalRef.current?.dismiss(),
82
+ dismiss: () => {
83
+ if (__DEV__) console.log('[BottomSheetModal] dismiss() called');
84
+ modalRef.current?.dismiss();
85
+ },
82
86
  snapToIndex: (index: number) => modalRef.current?.snapToIndex(index),
83
87
  snapToPosition: (pos: string | number) => modalRef.current?.snapToPosition(pos),
84
88
  expand: () => modalRef.current?.expand(),
85
89
  collapse: () => modalRef.current?.collapse(),
86
90
  }));
87
91
 
92
+ React.useEffect(() => {
93
+ if (__DEV__) {
94
+ console.log('[BottomSheetModal] Component mounted', {
95
+ hasModalRef: !!modalRef.current,
96
+ snapPoints: config.snapPoints,
97
+ preset
98
+ });
99
+ }
100
+ }, []);
101
+
88
102
  return (
89
103
  <GorhomBottomSheetModal
90
104
  ref={modalRef}
@@ -38,6 +38,15 @@ export const FilterBottomSheet = forwardRef<BottomSheetModalRef, FilterBottomShe
38
38
  }, ref) => {
39
39
  const tokens = useAppDesignTokens();
40
40
 
41
+ if (__DEV__) {
42
+ console.log('[FilterBottomSheet] Component mounted/rendered', {
43
+ title,
44
+ categoriesCount: categories?.length,
45
+ selectedIdsCount: selectedIds?.length,
46
+ hasRef: !!ref
47
+ });
48
+ }
49
+
41
50
  const styles = React.useMemo(() => StyleSheet.create({
42
51
  container: {
43
52
  flex: 1,
@@ -133,11 +142,27 @@ export const FilterBottomSheet = forwardRef<BottomSheetModalRef, FilterBottomShe
133
142
 
134
143
  const hasActiveFilters = FilterUtils.hasActiveFilter(safeSelectedIds, defaultId);
135
144
 
145
+ React.useEffect(() => {
146
+ if (__DEV__) {
147
+ console.log('[FilterBottomSheet] useEffect - Component ready', {
148
+ refCurrent: !!(ref as any)?.current,
149
+ categoriesCount: categories.length
150
+ });
151
+ }
152
+ }, []);
153
+
154
+ if (__DEV__) {
155
+ console.log('[FilterBottomSheet] Rendering JSX', { title, hasActiveFilters, selectedIds });
156
+ }
157
+
136
158
  return (
137
159
  <BottomSheetModal
138
160
  ref={ref}
139
161
  preset="medium"
140
- onDismiss={onDismiss}
162
+ onDismiss={() => {
163
+ if (__DEV__) console.log('[FilterBottomSheet] onDismiss callback triggered');
164
+ onDismiss?.();
165
+ }}
141
166
  backgroundColor={tokens.colors.surface}
142
167
  >
143
168
  <View style={styles.container}>