Bottom Sheet in Reanimated 2

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Learn how to create a cross-platform animated bottom sheet in React Native.
    This episode is as short as it can be, using Reanimated 2.
    Share in the comments what you'd like to see in the next episode of You Can Animated!
    Twitter: / eveningkid
    Medium: / eveningkid
    #reanimated2 #reactnative #react

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

  • @almobarmij
    @almobarmij 3 года назад +16

    Your contents are premium and unique. You are taking it to another level. Keep it up evening kid.

    • @eveningkid
      @eveningkid  3 года назад +1

      Thank you Mohamed, this means a lot to me :)

  • @celestindelahaye3491
    @celestindelahaye3491 11 месяцев назад +2

    Two years later, this video is still incredible, thank you evening kid :)

  • @govindbagla3599
    @govindbagla3599 2 года назад +1

    Not working in Android properly not able to close its stuck. Any solution?

  • @martinmaldonado4923
    @martinmaldonado4923 3 года назад +7

    Dude, this is top quality content! Just subbed. Keep the reanimated tutorials coming

    • @eveningkid
      @eveningkid  3 года назад +1

      Really trying to keep this great to watch. Thanks a lot for saying that, it’s amazing to see it’s helpful! More to come :)

  • @fatihbodur4029
    @fatihbodur4029 2 года назад +1

    Is it on github?

  • @tiagomarkes_
    @tiagomarkes_ Год назад

    Amazing video, just used it on my first app, but Im having a problem, cause the slider content sometimes overflows and if I set the overflow to scroll, the scroll movement is overlapped by the slider scroll, making it impossible to scroll the slider content. How do I fix that?

  • @raybelmo
    @raybelmo 3 года назад +2

    Well explained. I now feel comfortable enough to create my Bottom sheet

  • @rezamohammadi1210
    @rezamohammadi1210 Год назад

    it could be great if the Home screen backgroundcolor set to something not #fff then it wasn't annoying,
    the problem is you did not provide a link to code source

  • @facinick
    @facinick 3 года назад +1

    Can you share the starter code that you have ? I am not to react native.

  • @Nicson-c4k
    @Nicson-c4k Год назад

    how to blur background

  • @josephorji8331
    @josephorji8331 3 года назад +1

    this is awesome, can we get access to the code?

  • @programmingpython584
    @programmingpython584 Год назад +1

    One thing to keep in mind is that this sheet is created with a normal view, so it won't show over the header or tab (if using react navigation). To get that behavior, wrap the whole thing inside a Modal from react-native and write some logic for showing and hiding the Modal on proper time.

    • @programmingpython584
      @programmingpython584 Год назад

      @Hamza Hussain I don't think there is any way to render a view over the navigation bars etc. But there is a way to produce similar results. As the navigation object in any screen gives us the option to setOptions on the screen, you can use that to hide the navigation tabs and bars programatically (in your case, when opening the bottom sheet), this will span the sheet in the whole screen

  • @Quacky_Batak
    @Quacky_Batak 3 года назад +2

    Another great video ! I tried something like this with reanimated 1 but reanimated 2 has much simpler APIs. The only problem I have is that you use light theme 😥😂

    • @eveningkid
      @eveningkid  3 года назад

      This would have been a pain I believe to create with Reanimated 1, we agree! V2 is so much more readable...that’s insane. About the light theme, I never use this one but that’s for the video « theming » haha I should consider changing it maybe!

    • @Quacky_Batak
      @Quacky_Batak 3 года назад

      @@eveningkid yeah v1 implementation was tough I gave up and used the library but now I don't think I will consider using library.
      I got your "theming"! "How to animated" videos follow light theming and other ones dark. Anyways great video 👍

    • @eveningkid
      @eveningkid  3 года назад +1

      Thanks man :)

  • @makisetakashi
    @makisetakashi 3 года назад +1

    Can create by animated from react native ?
    Because reanimated such third party libs that in future will be has more breaking changes
    Like reanimated 1 , to reanimated 2 some code structure changes and need more effort to do migration

    • @eveningkid
      @eveningkid  3 года назад +2

      It’s true. You can do it with Animated and a Pan Responder but it won’t be as smooth on every device. You could replace shared values with animated values, the gesture handler with pan responder handlers and withSpring with Animated.spring! It’s really a matter of replacing libraries (my how to animated series could help you with all the concepts)

    • @makisetakashi
      @makisetakashi 3 года назад +1

      @@eveningkid Thanks for explanation, just know reanimated is more optimize than pure animated from react native

  • @mahanteshpatil7234
    @mahanteshpatil7234 Год назад

    amazing tutorial, I wanted to know how to add background blur, i just wanted to add the animation initial one, I do not have the requirement of pull, but want to blur the background.

  • @GreenTechRasta
    @GreenTechRasta 2 года назад

    Amazing video, very informative and helpful. Thank you! You gained a subscriber my friend 👌

  • @gastonquelali1226
    @gastonquelali1226 3 года назад

    You are THE BEST, goog JOB, thank you very much

  • @annashmuhendra6907
    @annashmuhendra6907 2 года назад

    thank you, simple and very helpppfullll. god bless you

  • @Dhruvsaxena19
    @Dhruvsaxena19 3 года назад +1

    Can you share your walktrough on how you got so good at react native, I kinda want to start react native

    • @eveningkid
      @eveningkid  3 года назад

      Honestly, there’s no magic recipe... I created many projects, spent countless days working on apps. If you know React and have an idea, you can go through the docs and learn from there based on your needs. You don’t need to know how I got my golden ticket, you gotta find yours!

    • @Dhruvsaxena19
      @Dhruvsaxena19 3 года назад

      @@eveningkid Ik react and I'hv actually made some apps with react native in past. I suffer with animations and no idea on how to work with them.

  • @roficakep
    @roficakep 2 года назад

    how implement this on class component?, sorry I'm newbe.

  • @ЗолбооО
    @ЗолбооО 3 года назад

    Is it work on android?Because I have occured error Javascript worklots error

  • @engincandinc9328
    @engincandinc9328 2 года назад

    Thanks a lot for this video, it's really helpful.
    Above code works perfectly on iOS. However, pan gesture handler does not work while animation works fine on Android .
    Maybe because of absolute positioning, has anyone got any idea?

  • @omerufuk
    @omerufuk 3 года назад

    This is better than trying to customize a library desperately.

  • @weezygang7777
    @weezygang7777 3 года назад

    why does not work in android physical device?

  • @HamzaAli-lv3im
    @HamzaAli-lv3im 3 года назад

    I m new to React Native and can you provide the code of this Video content.?

  • @iamdanquah
    @iamdanquah Год назад

    I must say that evening kid is so unique and knowledgeable... keep on with what you do we love your videos. Thanks alot 👍

  • @vx1724
    @vx1724 2 года назад

    Really good explanation, thanks

  • @LeandroSimoesArt
    @LeandroSimoesArt 2 года назад

    You made it so easy to understand! Awesome content! I always have a doubt about how to "organize" better the code and not let everything just be in the same file. There's any way to do that?

  • @cryptoknight7256
    @cryptoknight7256 3 года назад

    Attn to the dude who disliked the video: Did you spot an error in the code? You thought it could have been done in a better way? You were expecting a video about "bottom sheep" and got seriously frustrated? What is it?

    • @eveningkid
      @eveningkid  3 года назад

      This channel has over 99.5% of likes, I think we’re good with a few unhappy people! Now I wonder, what could possibly be a bottom sheep...haha

  • @alirezaop3484
    @alirezaop3484 2 года назад

    Great Video thanks

  • @samanthawithanage7521
    @samanthawithanage7521 3 года назад

    Interesting content and good explanation.

  • @zameer-haider
    @zameer-haider 3 года назад

    Please share the code this app

  • @rreell4372
    @rreell4372 2 года назад

    This is gold content.

  • @camilomezu5008
    @camilomezu5008 3 года назад

    Can you share the code?

  • @NonkelThomas
    @NonkelThomas 3 года назад

    Awesome! As I'm seeing video requests in the comments, let me add one: how would you approach a bi-directional infinite scroll? (e.g. Calendar on Android in planning mode)

    • @eveningkid
      @eveningkid  3 года назад +1

      This is quite a tough one, I’ll see if I could fit it into a short video! Either way, I’m sure you’ll find great things to learn on the channel. Thank you very much for your suggestion, it always cheers me up to read comments :)

  • @pokepoke5531
    @pokepoke5531 3 года назад

    lots of love

  • @aytacmalkoc
    @aytacmalkoc 3 года назад

    Hi, it is a really nice content. How do I use this component in other components? Since I am new to React Native, I do not know about it.

    • @eveningkid
      @eveningkid  3 года назад

      Hey Aytac, this is a tutorial to understand how it works but real-life bottom sheets can be much more complex than this. I'd recommend you to use react-native-bottom-sheet or react-native-reanimated-bottom-sheet, they're both well-made :)

  • @jacobcole1271
    @jacobcole1271 3 года назад

    Awesome example, you made this very easy to understand! Not a big fan of the light theme but I always look forward to watching your videos.

    • @eveningkid
      @eveningkid  3 года назад

      Thanks for letting me know Jacob. You’re not the only one asking for this, I might turn the whole theme dark next time :)

  • @zameer-haider
    @zameer-haider 3 года назад

    🤩 awesome sir

  • @iamsebs
    @iamsebs 3 года назад

    Thank you so much!

  • @centurion3708
    @centurion3708 3 года назад

    The way you explain things is astonishing, can i request a video on how to use the pinch gesture to zoom from any part of image? You know like zoom in a corner or the bottom center, I've trying to do this, but i just not skilled enough to make it work with reanimated 2

    • @eveningkid
      @eveningkid  3 года назад

      Thank you! I know what you're talking about, I'll see if I can make one. There's a lot already planned on this channel! Wait and see :)

    • @centurion3708
      @centurion3708 3 года назад

      @@eveningkid Gotta keep an eye on your channel then ;)

  • @huanhoatu3029
    @huanhoatu3029 3 года назад

    Great tutorial! Can you make a video on custom range slider?

    • @eveningkid
      @eveningkid  3 года назад

      Thanks for the kind words :) What do you mean exactly? Do you have an example maybe?

  • @almerandika3638
    @almerandika3638 3 года назад

    clearly this is premium content....

    • @eveningkid
      @eveningkid  3 года назад

      Thank you Almer, there’s a lot more you can find on the channel if you’re curious :)

  • @germanpineda8070
    @germanpineda8070 3 года назад

    Excellent video! You’re doing an awesome job 💯

    • @eveningkid
      @eveningkid  3 года назад

      Thanks a lot man, very happy this was useful to you!! You have no idea how much this kind of comment cheers me up :)

  • @prakharbangar8324
    @prakharbangar8324 3 года назад

    Thank you so much for these videos. Keep teaching us more❤️

    • @eveningkid
      @eveningkid  3 года назад

      No worries, I’m here to stay! Thank you for the kind words Prakhar :)

  • @muhammadmehdi1304
    @muhammadmehdi1304 3 года назад

    If u make step by step tutorial for Reanimated 2 with best projects i assure u , u will get much subscribers .

    • @eveningkid
      @eveningkid  3 года назад

      Thank you, Muhammad. Do you have some ideas on your mind? :)

    • @muhammadmehdi1304
      @muhammadmehdi1304 3 года назад

      @@eveningkid The idea is if u make tutorial step by step like the net ninja with full touching the basics and and each point with reference ,simple and understandable that will help u. And if u try some graphical explanation that will be more good

    • @muhammadmehdi1304
      @muhammadmehdi1304 3 года назад

      @@eveningkid As i searched and watched alot in youtube and google but this your tutorial touched my heart .

  • @AmirAhmic
    @AmirAhmic 3 года назад

    The video comes earlier than I expected 🥳 Thanks!

    • @eveningkid
      @eveningkid  3 года назад +1

      I remember someone asking for a bottom sheet... :)

  • @cryptoknight7256
    @cryptoknight7256 3 года назад

    Unless there is already a package out there, having a proper modal with backdrop etc... would be great. :)

    • @eveningkid
      @eveningkid  3 года назад

      There are really nice packages for that, this was just to illustrate how you can create one quite easily! :)

    • @cryptoknight7256
      @cryptoknight7256 3 года назад +1

      @@eveningkid I'm currently using react-native-modal which doesn't use Reanimated2. I was wondering if you knew of another react modal option that would leverage it

    • @eveningkid
      @eveningkid  3 года назад +1

      I used reanimated-bottom-sheet in the past, good one :)

  • @emperorrassem
    @emperorrassem 2 года назад

    Another Great video from you.

    • @eveningkid
      @eveningkid  2 года назад

      Thank you so much Alauddin! So great to know you liked it :) I hope to see you around!!

  • @jejunegamingtv1359
    @jejunegamingtv1359 3 года назад

    this is fucking awesome dude!

    • @eveningkid
      @eveningkid  3 года назад +1

      And that, is a freaking nice comment! Cheers man :)

  • @excalibur885
    @excalibur885 3 года назад

    awesome tutorial.... keep the coming...

    • @eveningkid
      @eveningkid  3 года назад

      Thank you! Is there something you'd like to see next? :)

  • @akmalahmed4660
    @akmalahmed4660 3 года назад

    Subscribed. Thank you very much from Sri Lanka 🇱🇰

    • @eveningkid
      @eveningkid  3 года назад +1

      Crazy to think how global this gets! Thank you so much for saying this, very happy this was helpful. Have you been coding in RN for a long time? :)

    • @akmalahmed4660
      @akmalahmed4660 3 года назад

      @@eveningkid Yes, I'm a RN developer. I always had some issues with understanding RN animations. Luckily I found your channel today. Now I decided to dig deep into RN animations. Thank you for that. I've already shared your channel with my colleagues...😊

    • @eveningkid
      @eveningkid  3 года назад +1

      Thanks a lot Akmal, that’s really nice of you! Hope to see you around!

  • @AkshatKumawat
    @AkshatKumawat 3 года назад

    You are spencer carli from react native school ?

    • @psatler
      @psatler 3 года назад

      the voice is very similar, isn't it? haha

    • @eveningkid
      @eveningkid  3 года назад

      That’s very possible. You might ask him just to make sure!

  • @virajjayasinghe3434
    @virajjayasinghe3434 3 года назад

    Valuable video. Keep going

    • @eveningkid
      @eveningkid  3 года назад

      Thank you, this is definitely the kind of comment that keeps me going! So...keep posting too hehe :)

  • @guillaumemartinez4381
    @guillaumemartinez4381 3 года назад

    an awesome video again, thaaaaaanks

    • @eveningkid
      @eveningkid  3 года назад

      Thank you Guillaume! It’s really cool to see you commenting a few times, it helps me a lot :)

  • @karthikbalasubramanian5122
    @karthikbalasubramanian5122 3 года назад

    Great video! Thanks !!

    • @eveningkid
      @eveningkid  3 года назад

      Thanks a lot for leaving a comment, glad this was helpful :)

  • @privat3stuff
    @privat3stuff 3 года назад

    Amazing as always, thank you!

    • @eveningkid
      @eveningkid  3 года назад

      Thank you so much, this really helps me keep going :)

  • @_Oskar_
    @_Oskar_ 3 года назад

    Just wow, your content is amazing

    • @eveningkid
      @eveningkid  3 года назад +1

      Just...thank you! I know it might be nothing for you to leave a comment but it means a lot to me. Thanks a lot, glad this is helpful to you :)

    • @_Oskar_
      @_Oskar_ 3 года назад

      ​@@eveningkid Keep going ;)

  • @lorkfongbot4683
    @lorkfongbot4683 3 года назад

    This is how you teach about animation, visually. Thank you for the high-quality content and clear explanations. Please keep it going. Easily subscribed.

    • @eveningkid
      @eveningkid  3 года назад +1

      Thank you so much for saying it, I’m very happy you found this helpful! Hope you’ll like the next videos :)