Skip to content

[v4] Dynamic height with FlatList not scrolling. #658

@alexisloiselle

Description

@alexisloiselle

Bug

When using the useBottomSheetDynamicSnapPoints together with BottomSheetFlatList, it's not possible to scroll the list anymore.

RPReplay_Final1632436636.MP4

Environment info

Library Version
@gorhom/bottom-sheet 4.0.3
react-native 0.64.2
react-native-reanimated 2.2.2
react-native-gesture-handler 1.10.3

Steps To Reproduce

  1. add a BottomSheet with the animatedSnapPoints, animatedContentHeight and animatedHandleHeight provided by useBottomSheetDynamicSnapPoints
  2. set the handleContentLayout to the child
  3. add a big enough list to overflow the screen

Describe what you expected to happen:

  1. it's not possible to scroll anymore

Reproducible sample code

Here's a Snack to reproduce:
https://snack.expo.dev/@alexisloiselle/dynamic-height-with-flatlist-not-scrolling

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions