How to Present a React Native Bottom Sheet

Поделиться
HTML-код
  • Опубликовано: 16 окт 2023
  • In this tutorial, we explore how to seamlessly integrate a bottom sheet into your React Native app using the great bottom sheet package by Gorhom. I walk you through the installation process, and configuration, and show you how to present the sheet as a modal or shared component in your React Native app!
    🔥 Build React Native apps FAST: galaxies.dev/
    🪐 Read the tutorial: galaxies.dev/react-native-bot...
    #############################
    ❤️ You can also find me on:
    Twitter: / schlimmson
    TikTok: / simongrimm_
    Instagram: / simongrimm_
    #############################
    Chapters:
    00:00 Intro
    00:53 Bottom Sheet Basics
    06:34 Customizing the Bottom Sheet
    15:03 Bottom Sheet Components
    17:47 Shared Bottom Sheet Modal
    29:22 Outro
    #reactnative
    #bottomsheet
    #codetutorial
  • НаукаНаука

Комментарии • 79

  • @MarlonEnglemam
    @MarlonEnglemam Месяц назад

    dude, this lib is just amazing. I have to code the very exact component for the project I'm working on, thought it would be a lot of work, but it's actually quite simples, I'm amazed. Thansk for the vid.

  • @robinsonsimon5835
    @robinsonsimon5835 8 месяцев назад +11

    Cool stuff. Exactly what I was looking for.

  • @mogorhom
    @mogorhom 8 месяцев назад +2

    very well simplified tutorial

  • @Furiac.
    @Furiac. 17 дней назад

    love your approach to tutorials, this is the second one that has helped me

  • @bhavishyapatel700
    @bhavishyapatel700 7 месяцев назад +2

    Thanks.Great video

  • @4nt1g3n
    @4nt1g3n 4 месяца назад +2

    Awesome 🎉...Thank you for this tutorial

  • @iam0_o301
    @iam0_o301 4 месяца назад +2

    thank you for this tutorial. It is helping a lot in my project. 😁 Thank you so much.

  • @ChungKang
    @ChungKang 4 месяца назад +1

    Great Tutorial, thank you!

  • @przemekdanysz53
    @przemekdanysz53 8 месяцев назад +2

    Cool, this is what I was looking for! :)

  • @raymondmichael4987
    @raymondmichael4987 8 месяцев назад +2

    Cool stuff 😊❤ I love it 🥰

  • @hugopinho9534
    @hugopinho9534 7 месяцев назад +1

    Great video!!!

    • @galaxies_dev
      @galaxies_dev  7 месяцев назад

      Glad you liked it - would be awesome if you could share it!

  • @penguinxed
    @penguinxed 2 месяца назад +1

    Thanks sir Simon for this tutorial, been looking for a clear and concise tutorial of this package. Cheers! :)

  • @willdunertm5047
    @willdunertm5047 8 месяцев назад +2

    I would love a tutorial of headers animation on scroll, like twitter or reddit, where tapping the header scrolls up to the begining. Great video

    • @galaxies_dev
      @galaxies_dev  8 месяцев назад +2

      Thanks for the idea, definitely something I will explore :)

  • @SmitShah-sv7hc
    @SmitShah-sv7hc 2 месяца назад

    Very Good Explanation!!! Can you share the vscode extensions you use for developing react-native apps

  • @exoticcoder5365
    @exoticcoder5365 Месяц назад

    24:21 "I really like this spread ... here " me too 😂😂😂 your little laugh made me laugh together too

  • @danbennatan2245
    @danbennatan2245 4 месяца назад

    Hi! Great video. I am getting struggled with backgroundComponent property of BottomSheetModal. I want to paint the background color with Linear Gradient component, and this property does not seem to work at all, even with simple "red" color. Any idea? That would be super helpful. Thanks!

  • @shabastech
    @shabastech 6 месяцев назад +1

    thanks for you so much 😊👍

    • @galaxies_dev
      @galaxies_dev  5 месяцев назад

      Happy to hear - share the video if you enjoyed it ✌️

  • @sweetnovember75
    @sweetnovember75 8 месяцев назад +1

    Good stuff!

  • @raymondmichael4987
    @raymondmichael4987 8 месяцев назад +2

    Yes this wa quick, 3 detailed use cases in under 30 minutes, nicely done ✅ buddy 😊.
    Please, do you have a tutorial to configure navigations, drawer, stacks and tabs; using typescript I find it hard to wrap my mind around it. Would like to know the type of routes present and other arguments needed per route by using editor suggestion.
    Please point to one good tutorial or create a tutorial about.
    Thanks buddy 😊

    • @galaxies_dev
      @galaxies_dev  8 месяцев назад +1

      We have a course on galaxies.dev about both React Navigation and Expo Router and we always use TS - But I will also try to work on something for this channel!

  • @user-tz2wc8ml7w
    @user-tz2wc8ml7w 5 месяцев назад +1

    great video

  • @godsonokezie5570
    @godsonokezie5570 7 месяцев назад +2

    Thanks for this Lovely tutorial. Would love to know if this package could be used without the snap points? what if i want the bottom sheet to take only height of its child and not a height based on snap points.

    • @godsonokezie5570
      @godsonokezie5570 7 месяцев назад +3

      I have found the solution to this, incase anyone else has this same question. All you need to do is set "enableDynamicSizing" to true and ensure you are using a instead of a .

    • @galaxies_dev
      @galaxies_dev  6 месяцев назад

      Thanks for leaving your solution!

  • @kshitijkhot1401
    @kshitijkhot1401 2 месяца назад +1

    Great Great !!! I was trying around this lib and messed up everything :( ... After watching your video everything solved ... Thanks man !!! :)

  • @Amitkumar-ps1dt
    @Amitkumar-ps1dt 7 месяцев назад +1

    You are just awesome
    Plz make a video how to create a sidebar in native

  • @user-vt9co1pv4t
    @user-vt9co1pv4t Месяц назад

    Hi! How do you trigger the keyboard to open?

  • @ma15jiachi
    @ma15jiachi 5 месяцев назад

    Hello, can you help me? after updating react-native to 73.0.1 I got this error cannot read property version of undefined

  • @yashrajysjdsnvxje-lv5ez
    @yashrajysjdsnvxje-lv5ez 5 месяцев назад

    I am having issue while creating a custom component for bottomsheetmodal, I am following the same step but in js file and getting error as present is not a function, please help how to fix it

  • @JustinPhilip-ik7gl
    @JustinPhilip-ik7gl 4 месяца назад

    how do we make the statusbar inside the backdrop ?

  • @galaxies_dev
    @galaxies_dev  8 месяцев назад +1

    Become an Expert React Native Developer @ Galaxies.dev and join our space crew 🚀

  • @mfaizhussain7
    @mfaizhussain7 2 месяца назад

    Hello
    Mr. Simon
    can you suggest an installation and setup video for react native from your channel or some other?

    • @galaxies_dev
      @galaxies_dev  Месяц назад

      I'd follow the Expo docs!

    • @mfaizhussain7
      @mfaizhussain7 Месяц назад

      @@galaxies_dev
      I mean for windows any tutorial fro setup and installation
      I know about the docs

  • @ImGamerGuy
    @ImGamerGuy Месяц назад

    backdropComponent doesn't overlap Navigation header, im facing this issue

  • @mk4dea
    @mk4dea 5 месяцев назад

    Have you tried displaying the BottomSheetModal over an expo-router modal yet? Would be an important caveat to mention.

    • @galaxies_dev
      @galaxies_dev  5 месяцев назад

      Haven't tried, maybe you should settle on one type of modal in your app!

  • @spnzchTV
    @spnzchTV 2 месяца назад

    I have error with it. This works with JavaScript or only TypeScript ?

  • @AssakurA1
    @AssakurA1 7 месяцев назад

    Good video! Hey, What version of react-native, reanimated and gesture-handle use? I try install with different version and no successfull on android ((

    • @galaxies_dev
      @galaxies_dev  7 месяцев назад +1

      Reanimated 3.3, gesture-handler 2.12, react-native 0.72

    • @AssakurA1
      @AssakurA1 7 месяцев назад

      @@galaxies_dev thanks a lot!

  • @tttadmin7508
    @tttadmin7508 2 месяца назад

    I want bottom sheet to appear when background fcm notification comes any solution or suggestion?

  • @user-jp8fx1yd2c
    @user-jp8fx1yd2c 3 месяца назад

    Nice video! do u know if it works for expo web too?

  • @user-lq3nj7ck1x
    @user-lq3nj7ck1x 3 месяца назад

    Hi, what tool do you use for drawing on your screen?

    • @galaxies_dev
      @galaxies_dev  3 месяца назад

      Think it's called Screenbrush on Mac app store

  • @chabelbossa
    @chabelbossa Месяц назад

    I'm having an issue in my app where the bottom sheet only takes up the available space, which prevents me from placing other components on the page. How can I fix this?

  • @chriscranston6117
    @chriscranston6117 8 месяцев назад

    hey simon, is this working with android do you know?
    the repo says "seemless keyboard for IOS and android" but modals are different on android.

    • @galaxies_dev
      @galaxies_dev  8 месяцев назад

      I think it should work fine on Android as well!

  • @aslamiliyas7703
    @aslamiliyas7703 7 месяцев назад

    please can you help me the modal should not be open by default unless i call it to open please what can i add

    • @galaxies_dev
      @galaxies_dev  7 месяцев назад

      In that case you are looking more for a modal - we cover that at the end of the video as well!

    • @mariamaspoli
      @mariamaspoli 6 месяцев назад +2

      I made it work by setting index to -1. Like this: index={-1}

  • @amarnathnani3950
    @amarnathnani3950 8 месяцев назад +1

    Customize reusable modal in react native

  • @bread_winner
    @bread_winner 7 месяцев назад

    I've been trying to use this package for the last week on a fresh expo app, and it just does not work. It keeps erroring on launch, saying '_measureFabric' is not defined. I've tried everything but no luck, and I couldn't find any help online either. If you or anyone knows how to fix it, please help 😭

    • @alwazkazi1916
      @alwazkazi1916 4 месяца назад

      same here it doesnt work

    • @bread_winner
      @bread_winner 4 месяца назад

      @@alwazkazi1916 If you’re using bun, make sure you are using the latest version. My error happened because my version of bun had a bug with installing packages, upgrading bun to the latest version fixed all my issues.

  • @mechwar
    @mechwar 5 месяцев назад +1

    PanGestureHandler error and cannot use the BottomSheet.

    • @aakrisri525
      @aakrisri525 2 месяца назад

      Same error, did you find a solution??

    • @mechwar
      @mechwar 2 месяца назад

      @@aakrisri525 no. I just let it for now

  • @emanuelmejia4525
    @emanuelmejia4525 5 месяцев назад

    My BottomSheetModal is mounted before I called, Did you know why?

  • @user-yx8jv6bh5j
    @user-yx8jv6bh5j 6 месяцев назад

    hey, while following the code i was trying, const handleClosePress=bottomSheetRef.current but the 'current' is not showing and so its throwing error please help. by the way nice work.

  • @woorix
    @woorix Месяц назад

    how to dismiss BottomSheetModal, when user touches backdrop area?

    • @woorix
      @woorix Месяц назад

      need to set `pressBehavior` as `close` for `BottomSheetBackdrop`