-
-
Notifications
You must be signed in to change notification settings - Fork 921
Closed
Labels
Description
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
- i open bottomsheet with a button
- scroll the view inside.
- scroll down to the top of contents and trying to keep scrolling down so that bottom sheet can be scrolled down and closed
- but bottom sheet is not scrolled down in ios. in android it works
Describe what you expected to happen:
- i want bottom sheet can be closed with scrolling down in ios too
Reproducible sample code
RomanSuvorov and Adil-U