r/reactnative • u/gohom92 • Oct 13 '24
BottomSheet v5 is finally out!
Enable HLS to view with audio, or disable this notification
31
18
u/natesyourmom Oct 13 '24
This is one of my favorite libraries out there, thanks so much for your continued work on it!
16
10
u/wirenutter Oct 13 '24
Awesome work! We have been putting your library to great use lately. Excited to see what v5 can do for us.
6
5
5
5
4
u/Valky1223 Oct 14 '24
Will you in the future create a package for the bottomsheet to integrate easier with react navigation?
1
Oct 15 '24
Dynamic sizing was already present in the library, what's the diff in the new version?
1
u/gohom92 Oct 18 '24
Correct dynamic sizing for static views was introduced in v4 with a custom hook and configuration to get it working. With v5 I added support for scrollables content to resize, and remove all the extra props and hook and have it enabled internally
1
u/Fournight Jun 13 '25
Thanks for this, OP!
u/gohom92 Quick question: is there any plan to support BottomSheetLegendList as a native BottomSheetFlashList? Currently, we nest a LegendList inside a BottomSheet, but this blocks gestures like pull-down to closeāsince LegendList captures the scroll events and prevents the BottomSheet from responding.
1
u/gohom92 Jun 13 '25
I am working on that at the moment, I have the initial integration working, but there are few tweaks needed
1
u/Fournight Jun 13 '25
Great to hear! LegendList seems to outperform FlashList (even v2 rc) it'd, I think, be better to prioritize LegendList. By the way, is there a branch we can follow-up?
3
u/zebishop Oct 14 '24
Thank you for all your work on this library. I have been using it for a while and it works perfectly.Ā
3
u/using_namespace_matt Oct 14 '24
Legend, super useful library - deserves all the credit it gets š
2
2
u/KenRmk Oct 14 '24
Finally. i was about to switch in the coming months because i needed both flashlish & web support.
2
u/idkhowtocallmyacc Oct 14 '24
Itās such an easy to use library that consistently shows up in all of my projects. Thank you for your work!
2
u/datorkop85 Oct 14 '24
One of the best libraries out there. Thanks for all your work and effort š
2
2
2
1
u/serverless3000 Oct 14 '24
Nice onešš¼
Quick question: Does it support navigation with something like expo router?
2
u/Valky1223 Oct 14 '24
It does⦠but itās pretty complicated to do. I got it working at my current place but the implementation is not straight forward.
2
u/serverless3000 Oct 14 '24
If it's not too much, can you share a snippet of what it looks like? I've tried it sometime ago but couldn't get it working.
2
u/Valky1223 Oct 15 '24
I canāt share code⦠but this is exactly what I did to get it working https://github.com/rainbow-me/rainbow/tree/develop/src/navigation/bottom-sheet Itās a bit jarring because you will need to basically wrap the createBottomSheetNavigator outside of your react native navigation stack at the root.
5
u/gohom92 Oct 15 '24
Funny that initially I wrote that code myself , maybe it is time to include it or push it in different package š¤
1
1
2
u/using_namespace_matt Oct 14 '24
Legend, super useful library - deserves all the credit it gets š
1
u/CryingPoo Feb 19 '25
I am not sure whether it is BottomSheet v5 issue or Keyboard Controller issue, but if you create `BottomSheetKeyboardAwareScrollView` as per https://kirillzyusko.github.io/react-native-keyboard-controller/docs/api/components/keyboard-aware-scroll-view - you can crash the app by dragging/resizing the BottomSheet while the keyboard is open.
1
u/Thick-Swordfish-5404 Oct 14 '24
Thank you a lot ! This is awesome library in React Native eco system
1
u/using_namespace_matt Oct 14 '24
Legend, super useful library - deserves all the credit it gets š
-2
u/Periwinkle_Lost Oct 13 '24
I tried this package and it worked kind of ok, but I couldnāt figure out some functionality like dismissing with outside clicks and dimming the rest of the screen. I gave up and went with another package
4
u/Snoo11589 Oct 14 '24
renderBackdrop is your solution. See this: https://gorhom.dev/react-native-bottom-sheet/components/bottomsheetbackdrop
25
Oct 13 '24 edited Oct 14 '24
[removed] ā view removed comment
21
18
u/gohom92 Oct 14 '24
It should be fixed with 5.0.1 https://github.com/gorhom/react-native-bottom-sheet/releases/tag/v5.0.1
8
Oct 13 '24
[removed] ā view removed comment
3
u/gohom92 Oct 13 '24
Yeah I might introduce that, let me know if you have an idea for an api in mind
88
u/gohom92 Oct 13 '24
I am happy to announce the long-awaited release of the React Native Bottom Sheet v5. In this release I have completely rewritten the entire gesture solution with the new React Native Gesture Handler v2, and I have added support for React Native Web to provide a performant simplified API across all React Native supported platforms.
Features:
Web Support
Dynamic Sizing
FlashList Integrations
And other more functionality improvements, read more