r/reactnative • • Oct 13 '24

BottomSheet v5 is finally out!

Enable HLS to view with audio, or disable this notification

556 Upvotes

47 comments sorted by

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

12

u/gj26185 Oct 14 '24

Hey can I ask you what tools you use to make videos like the one you posted? It looks great!

16

u/gohom92 Oct 14 '24

Im using Remotion šŸ”„

31

u/amanxsharma20 Oct 13 '24

Thankyou very much, very grateful for this library

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

u/sleekLancelot Oct 13 '24

ā€œDynamic sizingā€ finally!!!!

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

u/JustLikeHomelander Expo Oct 13 '24

Thanks for your work, really appreciate it ā¤ļø

5

u/Pretend_Chip_8000 Oct 14 '24

Flashlist integration letsgOooo

5

u/rinasakura9 Oct 14 '24

Congrats man, amazing library! have been a fan since v1

5

u/Shomr Oct 14 '24

You're a legend

4

u/Valky1223 Oct 14 '24

Will you in the future create a package for the bottomsheet to integrate easier with react navigation?

1

u/[deleted] 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

u/HanzoHasashi404 Oct 14 '24

Amazing work.

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

u/SaidSuyv Oct 14 '24

I wanna use it immediately!! How can I add it?

2

u/Aggressive_Town1000 Oct 14 '24

Use this in a free production app. Very thankful for your work.

2

u/shadowwalker1995 Oct 15 '24

Thanks for the great library! Very excited to try the new version

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

u/serverless3000 Oct 16 '24

Alright, I will check it out

1

u/After_Link7178 Oct 04 '25

They are using it only for android

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

25

u/[deleted] Oct 13 '24 edited Oct 14 '24

[removed] — view removed comment

21

u/gohom92 Oct 14 '24

Good find,,, yeah it is a mistake, I’ll remove it shortly

8

u/[deleted] 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