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

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.42",
3
+ "version": "2.6.43",
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",
@@ -68,6 +68,9 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
68
68
 
69
69
  const handleSheetChange = useCallback(
70
70
  (index: number) => {
71
+ if (__DEV__) {
72
+ console.log('[BottomSheetModal] onChange triggered', { index });
73
+ }
71
74
  onChange?.(index);
72
75
  if (index === -1) onDismiss?.();
73
76
  },
@@ -99,6 +102,14 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
99
102
  }
100
103
  }, []);
101
104
 
105
+ React.useEffect(() => {
106
+ if (__DEV__) {
107
+ console.log('[BottomSheetModal] modalRef updated', {
108
+ hasModalRef: !!modalRef.current,
109
+ });
110
+ }
111
+ }, [modalRef.current]);
112
+
102
113
  return (
103
114
  <GorhomBottomSheetModal
104
115
  ref={modalRef}
@@ -111,6 +122,11 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
111
122
  enablePanDownToClose={config.enablePanDownToClose}
112
123
  onChange={handleSheetChange}
113
124
  onDismiss={onDismiss}
125
+ onAnimate={(fromIndex, toIndex) => {
126
+ if (__DEV__) {
127
+ console.log('[BottomSheetModal] onAnimate', { fromIndex, toIndex });
128
+ }
129
+ }}
114
130
  backgroundStyle={[styles.background, { backgroundColor: backgroundColor || tokens.colors.surface }]}
115
131
  handleIndicatorStyle={[styles.handleIndicator, { backgroundColor: tokens.colors.border }]}
116
132
  >