Skip to content

BottomSheetBackdrop component doesn't show up at all when setting the appearsOnIndex prop #527

@ramirezabel

Description

@ramirezabel

Bug

The BottomSheetBackdrop component wont show up when setting the appearsOnIndex={0} for example. As I understand the prop is to tell the backdrop to show up when the snap point in on the index provided. If thats not the case then can someone provide a way of doing that. In my case the backdrop doesn't show when the index is at 0 only when dragging the component up to the other snap points does it show, however like mentioned above, if I set the property of the backdrop appearsOnIndex={0} it doesn't show at all.

Environment info

Library Version
@gorhom/bottom-sheet 4.0.0-alpha.19
react-native ^0.64.1
react-native-reanimated ^2.1.0
react-native-gesture-handler ^1.10.3

Steps To Reproduce

  1. Set the BottomSheetBackdrop prop appearsOnIndex={0}
  2. Open the bottom sheet modal and the backdrop doesn't show

Describe what you expected to happen:

  1. Set the BottomSheetBackdrop prop appearsOnIndex={0}
  2. Backdrop should show up as soon as the modal opens to the first snap point

Reproducible sample code

Screen Shot 2021-07-10 at 8 19 11 PM

Screen Shot 2021-07-10 at 8 17 51 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions