@umituz/react-native-bottom-sheet 1.1.10 → 1.1.11
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-bottom-sheet",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Modern, performant bottom sheets for React Native with preset configurations, keyboard handling, and smooth animations",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -242,7 +242,12 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
|
|
|
242
242
|
present: () => {
|
|
243
243
|
if (isMounted && modalRef.current) {
|
|
244
244
|
// @gorhom/bottom-sheet's present() automatically opens from bottom to first snap point
|
|
245
|
-
|
|
245
|
+
// Use requestAnimationFrame to ensure the component is fully ready
|
|
246
|
+
requestAnimationFrame(() => {
|
|
247
|
+
if (modalRef.current) {
|
|
248
|
+
modalRef.current.present();
|
|
249
|
+
}
|
|
250
|
+
});
|
|
246
251
|
}
|
|
247
252
|
},
|
|
248
253
|
dismiss: () => {
|