Skip to content

scroll down to close bottom sheet in scrollview doesnt work in ios #316

@casysj

Description

@casysj

Bug

Hello
I have a simple problem but can not handle it.

const data = useMemo(
    () =>
      Array(50)
        .fill(0)
        .map((_, index) => index),
    []
  );

  // render
  const renderItem = useCallback(
    (item) => (
      <View key={item}>
        <Text>{item}</Text>
      </View>
    ),
    []
  );
<BottomSheet
          ref={bottomSheetRef}
          index={0}
          snapPoints={snapPoints}
          onChange={handleSheetChanges}
          style={styles.sheetContainer}
        >
          <BottomSheetScrollView>{data.map(renderItem)}</BottomSheetScrollView>
        </BottomSheet>

this is how my codes look like.

Environment info

Library Version
@gorhom/bottom-sheet 2.2.2
react-native 0.63.2
react-native-reanimated 1.13.2
react-native-gesture-handler 1.7.0

Steps To Reproduce

  1. i open bottomsheet with a button
  2. scroll the view inside.
  3. scroll down to the top of contents and trying to keep scrolling down so that bottom sheet can be scrolled down and closed
  4. but bottom sheet is not scrolled down in ios. in android it works

Describe what you expected to happen:

  1. i want bottom sheet can be closed with scrolling down in ios too

Reproducible sample code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions