-
-
Notifications
You must be signed in to change notification settings - Fork 908
Closed
Labels
Description
Bug
Hi Mo, sorry for the vague issue title, but I've tried a bunch of platform/version combinations and they produce different behavior.
The repro has the simplest possible setup:
<View style={styles.container}>
<BottomSheet snapPoints={['50%', '80%']}>
<BottomSheetScrollView style={{ flex: 1, backgroundColor: 'red' }}>
<View style={{ height: 100, backgroundColor: 'blue' }} />
<View style={{ height: 100, backgroundColor: 'green' }} />
// ...etc, these views are repeated a bunch of timesI tested this separately on:
- iOS, Expo 44 & Expo 45 - same behavior
- Android, Expo 44 - can not scroll at all
- Android, Expo 45 - crashes with [v4] __reanimatedWorkletInit is not a function in expo 45 snack #971
Environment info
Expo 45:
| Library | Version |
|---|---|
| @gorhom/bottom-sheet | 4.3.2 |
| react-native | (whatever comes with Expo 45) |
| react-native-reanimated | 2.8.0 |
| react-native-gesture-handler | 2.2.1 |
Expo 44:
| Library | Version |
|---|---|
| @gorhom/bottom-sheet | 4.3.2 |
| react-native | (whatever comes with Expo 44) |
| react-native-reanimated | 2.3.1 |
| react-native-gesture-handler | 2.1.0 |
Steps To Reproduce
iOS
RPReplay_Final1655375235.MP4
In this video, I am doing the following:
- Swiping up/down on the scroll view - nothing happens. ❌ I expect the bottom sheet to expand when swiping up.
- Swiping up on the handle view (white bg) - this lets me expand the bottom sheet. ✅
- Scrolling the scroll view down - this works while expanded. ✅
- Scrolling the scroll view up. ❌ I expect to not see the red view, but the bottom sheet instead snapping to the smaller snap point.
- Swiping down on the handle works, this has the same behavior as in state 1.
Android
22-06-16-11-26-34.mp4
You can see the touches on this, this unfortunately does not work at all.
Reproducible sample code
mounirkanane