Skip to content

[Bug]: When the Galaxy Fold device is in the unfolded state, the Backdrop is displayed by default even though the BottomSheet index is -1. #2610

@kr-yeon

Description

@kr-yeon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions