-
-
Notifications
You must be signed in to change notification settings - Fork 938
Closed
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem right
Description
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
Android
What happened?
When the Galaxy Fold is unfolded, the Backdrop is displayed by default, even though the BottomSheet's index is -1. This section functions normally when the device is closed and displayed on a small screen, but when the device is unfolded, the Backdrop is displayed by default.
The debugging environment is the Galaxy Fold 5.
Reproduction steps
- Prepare your device.
- Create a BottomSheet. The code below is an example I used.
<BottomSheet
ref={ref}
index={-1}
backdropComponent={BottomSheetBackdrop}
enablePanDownToClose={true}
keyboardBehavior={'interactive'}
keyboardBlurBehavior={'restore'}
android_keyboardInputMode={'adjustPan'}
enableBlurKeyboardOnGesture={true}
>
<BottomSheetView />
</BottomSheetView>
Since index is -1, it is not expanded by default.
My backdrop is the code below.
<BottomSheetBackdrop
style={{ flex: 1, backgroundColor: '#000' }}
opacity={1}
disappearsOnIndex={-1}
appearsOnIndex={0}
pressBehavior={'close'}
{...props}
/>
When the device is folded it works as expected, but when unfolded it defaults to showing the Backdrop.
This behavior only occurs when the device is unfolded.
Reproduction sample
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem right