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
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

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(() => {