@umituz/react-native-design-system 2.3.34 → 2.3.35

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.3.34",
3
+ "version": "2.3.35",
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",
@@ -1,3 +1,5 @@
1
+ declare const __DEV__: boolean;
2
+
1
3
  import React, { forwardRef, useCallback, useMemo, useImperativeHandle, useRef } from 'react';
2
4
  import { StyleSheet } from 'react-native';
3
5
  import {
@@ -75,7 +77,15 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
75
77
  );
76
78
 
77
79
  useImperativeHandle(ref, () => ({
78
- present: () => modalRef.current?.present(),
80
+ present: () => {
81
+ if (__DEV__) {
82
+ // eslint-disable-next-line no-console
83
+ console.log('[BottomSheetModal] present() called');
84
+ // eslint-disable-next-line no-console
85
+ console.log('[BottomSheetModal] modalRef.current:', modalRef.current);
86
+ }
87
+ modalRef.current?.present();
88
+ },
79
89
  dismiss: () => modalRef.current?.dismiss(),
80
90
  snapToIndex: (index: number) => modalRef.current?.snapToIndex(index),
81
91
  snapToPosition: (pos: string | number) => modalRef.current?.snapToPosition(pos),