Skip to content

[v4] Initial index -1 not working on Android Only #642

@aimensasi

Description

@aimensasi

Bug

When using the -1 index to make sure that the sheet is closed on the initial render, the sheet works fine on IOS but not on android. Instead on android, the sheet renders a small portion at the bottom of the screen, which blocks interaction with contents outside the sheet.

WhatsApp Image 2021-09-15 at 11 08 55 PM

Environment info

Library Version
@gorhom/bottom-sheet 4.0.3
react-native 0.63
react-native-reanimated 2.2.0
react-native-gesture-handler 1.10.3

Steps To Reproduce

Nothing big here, a simple example. Just set the index to -1.

Describe what you expected to happen:

The sheet should be closed on initial render and only show when a button is pressed

Reproducible sample code

The snack code with the issue

https://snack.expo.dev/@aimensasi/bottom-sheet-v4-reproducible-issue-template

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requestedv4Written in Reanimated v2

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions