@umituz/react-native-design-system 2.6.46 → 2.6.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": "2.6.
|
|
3
|
+
"version": "2.6.47",
|
|
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",
|
|
@@ -102,6 +102,14 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
|
|
|
102
102
|
if (__DEV__) console.log('[BottomSheetModal] Calling modalRef.current.present()...');
|
|
103
103
|
modalRef.current.present();
|
|
104
104
|
if (__DEV__) console.log('[BottomSheetModal] modalRef.current.present() executed');
|
|
105
|
+
|
|
106
|
+
// Fallback: Also try snapToIndex as a workaround
|
|
107
|
+
setTimeout(() => {
|
|
108
|
+
if (modalRef.current && typeof modalRef.current.snapToIndex === 'function') {
|
|
109
|
+
if (__DEV__) console.log('[BottomSheetModal] Fallback: calling snapToIndex(0)');
|
|
110
|
+
modalRef.current.snapToIndex(0);
|
|
111
|
+
}
|
|
112
|
+
}, 50);
|
|
105
113
|
} catch (error) {
|
|
106
114
|
if (__DEV__) console.error('[BottomSheetModal] Error calling present():', error);
|
|
107
115
|
}
|