Replies: 2 comments
-
|
I've created a new sheet library. Feel free to check it here: https://github.com/doanhtu07/react-native-the-sheet I haven't supported FlashList or LegendList yet, but you can create one yourself using the pan gesture similar to how I did in my BottomSheetFlatList That said, I believe gorhom bottom sheet should have already supported what you want through its scroll view component. This is just a pan gesture problem. Not sure why it didn't work for you |
Beta Was this translation helpful? Give feedback.
-
|
The Airbnb search-result bottom sheet effect (map behind, draggable list of results in front) is a classic pattern. Here's how to achieve it with Core setup: const snapPoints = useMemo(() => ['15%', '50%', '90%'], []);
return (
<View style={{ flex: 1 }}>
{/* Map stays full screen behind */}
<MapView style={StyleSheet.absoluteFill} />
<BottomSheet
index={1} // start at 50%
snapPoints={snapPoints}
enablePanDownToClose={false} // always visible
backgroundStyle={{ borderRadius: 24 }}
>
<BottomSheetFlatList
data={results}
keyExtractor={(item) => item.id}
renderItem={({ item }) => <ResultCard item={item} />}
contentContainerStyle={{ paddingBottom: 80 }}
/>
</BottomSheet>
</View>
);Key details:
The tricky part — scroll lock: Are you trying to sync map viewport with selected items, or just the basic layout? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
WhatsApp.Video.2026-03-16.at.20.51.30.mp4
I wanna create a similar modal for my list, where the modal can't be minimized to lower snap point until the scrollable item inside is at the very top / first item. Try this approach with AI/custom made, gorhom/bottom-sheet, but still not working as expected. Anyone have any idea how to create something like this? the scrollable item inside will be using flashlist or legend list. thanks!
Beta Was this translation helpful? Give feedback.
All reactions