Do not close bottom sheet before is displayed

This commit is contained in:
Elias Nahum
2022-09-03 04:46:55 -04:00
parent b3ad01d374
commit 096b29cb27

View File

@@ -65,8 +65,10 @@ const BottomSheet = ({closeButtonId, componentId, initialSnapIndex = 0, renderCo
}, []);
const handleCloseEnd = useCallback(() => {
backdropOpacity.value = 0;
setTimeout(close, 250);
if (firstRun.current) {
backdropOpacity.value = 0;
setTimeout(close, 250);
}
}, []);
const handleOpenStart = useCallback(() => {