The basics of PanGestureHandler with React Native Reanimated 2

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 104

  • @stancobridge
    @stancobridge 3 роки тому +38

    For me, your is the only video makes it clear on Reanimated, I have been struggling to understand Reanimated in React Native, both 1 and 2 none was clear to me until I found this. How explain every concept before using it is amazing. Keep it up sir

    • @Reactiive
      @Reactiive  3 роки тому +1

      Thanks a lot! You have made my day 🥰

    • @LotfiORouis
      @LotfiORouis 3 роки тому +1

      I can't agree more :)

  • @abdulbasir8740
    @abdulbasir8740 2 роки тому

    Thank you, this is very useful

  • @ZiChaoHe
    @ZiChaoHe Рік тому

    I want to save the location after moving. It will still be there when I open the APP next time. What should I do?

  • @danpetre5414
    @danpetre5414 3 роки тому +8

    I like your teaching style. What theme (on vscode) are you using ? :)

    • @Reactiive
      @Reactiive  3 роки тому +1

      Hi Dan thanks for the feedback.
      Here's the info on my vscode theme setup:
      - vscode theme “Tokyo Night" ( marketplace.visualstudio.com/items?itemName=enkia.tokyo-night );
      - palenight icons ( marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme-icons ).

  • @excalibur885
    @excalibur885 3 роки тому +6

    great video... clear and understandable... actually could be better if you ve done a drag and drop delete system :) becouse its very similar to that

  • @samrithshankar2452
    @samrithshankar2452 3 роки тому +3

    Thank you so much for this. My app keeps crashing when I use PanGestureHandler but otherwise it works just fine. Idk what to do :(

    • @Reactiive
      @Reactiive  3 роки тому +1

      If you are using react-native-cli instead of expo make sure to wrap all the app with the GestureHandlerRootView.

    • @samrithshankar2452
      @samrithshankar2452 3 роки тому

      @@Reactiive THANK YOU SO MUCH! I have been stuck at this for 4 hours lol

  • @59aathi
    @59aathi 3 роки тому +2

    Great job please do scratch card like google pay

  • @tumblelandproduction
    @tumblelandproduction 2 роки тому +2

    Interestingly it works if I run it in the web browser but not on my actually android phone or android simulator. Any suggestions anyone?

    • @Reactiive
      @Reactiive  2 роки тому +3

      Hi, if you're using React Native CLI you must wrap the Root Component with the GestureHandlerRootView component (from react-native-gesture-handler)

    • @tumblelandproduction
      @tumblelandproduction 2 роки тому

      @@Reactiive Thank you for the help! I got it!

    • @tumblelandproduction
      @tumblelandproduction 2 роки тому +1

      You absolutely made my day!!!! Thank you so much!

  • @aditya_warrier
    @aditya_warrier 3 роки тому +5

    Great video! Could you extend the same concept and do a tutorial on how we can build Tinder style cards?

    • @Reactiive
      @Reactiive  3 роки тому

      This is a great idea! I'm currently working on these videos related to the basic components of reanimated, but I'll soon start deepening animations by taking inspiration from existing apps. Stay tuned for more content on this channel!

    • @aditya_warrier
      @aditya_warrier 3 роки тому +1

      @@Reactiive Highly appreciated! Great content.
      Maybe you can do a series on the reanimated 2 hooks and APIs as this is a region where I feel people struggle with the learning curve.

    • @Reactiive
      @Reactiive  3 роки тому +1

      @@aditya_warrier I completely agree with you on this point. Currently I have already made an introductory video about the reanimated 2 APIs on my channel called "Introduction to Reanimated 2" and today I uploaded a video regarding the use of interpolate with the Animated.ScrollView. Thank you very much for your advice, I will definitely go in this direction!

  • @externemw3
    @externemw3 3 роки тому +7

    Awesome! Thank you, this type of content is helping me a lot, I didn't know anything about animations in React Native and now I'm learning from you, thanks!

    • @Reactiive
      @Reactiive  3 роки тому

      Thank you Jeliel, I'm glad you liked it 🚀

  • @harunergingonen2656
    @harunergingonen2656 3 роки тому +3

    I'll continue to write thank you to your all videos when i finished to watch :D But really it helps so much, Thank you

  • @davidgentilli7944
    @davidgentilli7944 Місяць тому

    This is a great series of videos! I like the approach of going through step by step. It's the first time I feel like I'm developing a strong understanding of Reanimated's APIs.

  • @AmireSteve
    @AmireSteve Рік тому

    Update: You need to put the PanGestureHandler in a parent component for the pan gesture event to work on android devices.

  • @emperorrassem
    @emperorrassem 3 роки тому +3

    Awesome, Just Awesome.

  • @abraham7966
    @abraham7966 2 роки тому

    I find typescript soo redudant..... Like if you are good with full-filling contracts then you know what to expect. I find this syntax so unreadable sometimes..

  • @Prasanth_Venkatachalam
    @Prasanth_Venkatachalam 2 роки тому +2

    I have been struggling in react native animation, Finally found perfect mentor for reanimated. Keep going
    Thanks a lot for this video.

  • @jefriaritambunan2796
    @jefriaritambunan2796 2 роки тому

    I use android emulator and it just worked if used by then errors appeared after a added in. Any help how to fix it. or maybe is there any other solution to replace

  • @Vlogeromani
    @Vlogeromani Рік тому

    how to navigate to another screen
    my code
    if(distance>circle_size){
    runonjs(navigation.navigate('New')}

  • @ioanasbogdan
    @ioanasbogdan 3 роки тому +4

    super clear and clean explanations. Can you do a drag and drop image grid example?

    • @Reactiive
      @Reactiive  3 роки тому

      Why not! Thanks for the inspiration (Can you share with me an app with this functionality?) 🚀

    • @ioanasbogdan
      @ioanasbogdan 3 роки тому

      @@Reactiive google chrome app. The new tab has this

  • @bienfaitshm
    @bienfaitshm 2 роки тому +1

    congratulation... bravo a vous, j'aime et grâce a vous vidéo je comprend de mieux en mieux

  • @syamkishore1685
    @syamkishore1685 2 роки тому +1

    Can you please make a video about react-native-reanimated v2 installation? I am not sure where I did the mistake but this code is not working for me. I doubt any configuration mistakes in my code.

  • @daljeetsingh5127
    @daljeetsingh5127 3 роки тому +2

    great Job thanks for this video

  • @ethiodude9886
    @ethiodude9886 3 роки тому +2

    thank for everything. i want to ask if any Reanimated resource like PDF exist

    • @Reactiive
      @Reactiive  3 роки тому

      Hi ethio, thank you very much! I don't think there is unfortunately (but I'm not sure). Reanimated is a package that improves and changes very quickly and it's hard to have an always up-to-date pdf document

  • @ZiChaoHe
    @ZiChaoHe Рік тому

    I want to save the location after moving. It will still be there when I open the APP next time. What should I do?

  • @Vintersorganic
    @Vintersorganic Рік тому

    Did the context change? Because I'm receiving "undefined" and its not working if I use it

  • @hamzarajput6046
    @hamzarajput6046 2 роки тому +1

    very nice Sir

  • @matan6080
    @matan6080 Рік тому

    hey thank you.
    how can I track multiple fingers momvnement?

  • @teminoah2960
    @teminoah2960 4 місяці тому

    Fantastic explanation and easy examples ❤ .👒 hats off

  • @NaveenKumar-fo4kz
    @NaveenKumar-fo4kz 3 роки тому +2

    how to handle multiple panhandlers in usestyle and usegesturehandler with array

    • @Reactiive
      @Reactiive  3 роки тому +2

      It isn't trivial at all! When you need to deal with multiple handlers it is usually needed to provide the waitFor and simultaneousHandlers props. Can you show me your specific use case where it is needed to handle multiple gestureHandlers?

  • @sidty
    @sidty 2 роки тому +1

    Loved it,
    I have a question context.translationX is not set to zero in onEnd function but still when square goes back to its Origional position after releasing and then draging it again, it does not produce any issue with addition of old value context.tranationX, but why ?

  • @ericb252
    @ericb252 2 роки тому +1

    Very excellent work. Finally the UA-cam algorithm is recommending me good quality content

  • @ShortCodeDev
    @ShortCodeDev Рік тому

    Awesome man. Why is there no new video coming .

  • @ManasTunga
    @ManasTunga 3 роки тому +2

    Great tutorials !!!

  • @YuryiBabrou
    @YuryiBabrou Рік тому +1

    Thank you so much for this top notch explanation

  • @freak2137
    @freak2137 2 роки тому +1

    Wow amazing explanation, i have coded react native for 2 years and I always failed to understand animated logics. And after watching your videos, it makes everything much more sense. Cant wait to apply these knowledge in my app. Thank you!

  • @nurhamsah_tech
    @nurhamsah_tech Рік тому

    thanks for tutorial very helpfull

  • @umaralfaruq1304
    @umaralfaruq1304 3 роки тому +1

    In my result the context is returning undefined bro

    • @Reactiive
      @Reactiive  3 роки тому

      Hi Umar, did you assign the translateX.value to the context.x in the onStart callback?

    • @umaralfaruq1304
      @umaralfaruq1304 3 роки тому

      @@Reactiive ok solved thanks brother

  • @code-island
    @code-island 3 роки тому +2

    very good thanks

    • @Reactiive
      @Reactiive  3 роки тому

      Hi Pablo, thanks for your feedback 🤓

  • @stesvis
    @stesvis Рік тому

    Grande tutorial (sei italiano vero?)

  • @collinsk8754
    @collinsk8754 4 місяці тому

    Excellent tutorial 👍👍

  • @myzel394
    @myzel394 2 роки тому

    Your videos are really good. No jokes, most of the time, when I search for React Native tutorials, they are really shit and basically just copy the documentation in the worst way possible. You, however, cover everything that's really important when programming (I'm especially thankful that you include TypeScript) - Keep making those awesome videos. I'm a student so I can't donate money to you, but I'll keep like your videos, subscribed to you and will definitely recommend your channel! :)

  • @syamkishore1685
    @syamkishore1685 2 роки тому

    Thank you for the detailed video. Please make more videos about reanimated2. BTW, where Can I learn more about ?

  • @ZiChaoHe
    @ZiChaoHe Рік тому

    Very good effect, but how can I give an initial coordinate to this square, such as the upper left corner or the lower right corner, I don't know how to give it an initial value

  • @tumblelandproduction
    @tumblelandproduction 2 роки тому

    I copied the code from the github repository, I installed react native reanimated, the plugin, and react native gesture handler and it does not work. Any suggestions anyone?

  • @NpcX-pn5xk
    @NpcX-pn5xk 2 роки тому +1

    Finally. The Reactive Content

  • @sup_nim
    @sup_nim Рік тому

    SOOOOO good thnks!

  • @techieharry3178
    @techieharry3178 6 місяців тому

    you explained things in really simple way. Thanks for these videos on animation

  • @mixai7
    @mixai7 2 роки тому

    can you explain why expo cli not work for android reanimation , it only work in web view .I cannot see the cause.

  • @HurmainKhalid
    @HurmainKhalid Рік тому

    I'm new here and searching for rotation animation and the way you try to teach is really appreciated . Going to subscribed.
    By the way I was looking for rotation of a circle, if you can help/guide me how can we rotate a circle anticlockwise/clockwise having 7 segments and change the text by rotating the circle and passing through each segment
    it would be great help for me.

  • @clapynick
    @clapynick 2 роки тому +1

    Great video and great explanation! I learnt a lot from this.

    • @Reactiive
      @Reactiive  2 роки тому +1

      Thank you very much! Super great profile picture by the way 😁

  • @Vlogeromani
    @Vlogeromani Рік тому

    wao ماشاءاللہ great

  • @mixai7
    @mixai7 2 роки тому

    only work in web view. not work in expo simulator. how can fix it?not work in javascript?

  • @funstationatlanta
    @funstationatlanta Рік тому

    Very Nice!

  • @raideno56
    @raideno56 2 роки тому

    Hello Sir great tutorial, i had one question how i can do to not let the square go outside of the screen ? should i use Dimension api from react-native module and in onActive event handle this ? or there is a better way ?

  • @robdev89
    @robdev89 2 роки тому

    Awesome! I subscribed! => you deserve way more subscribers this is really great content!

  • @santoriggio4945
    @santoriggio4945 2 роки тому +1

    Thank you so much! Grazie, facile da capire

  • @vladislavshushpanov7272
    @vladislavshushpanov7272 2 роки тому

    thanks!

  • @ggchicote
    @ggchicote 2 роки тому

    Good tutorial! Thanks. I wonder whether there is any reason why do you use 100.0 for the size instead of 100 (without .0)?

  • @saularagon5209
    @saularagon5209 Рік тому

    I'm doing your tutorials one by one!
    Im learning a lot!
    Thx!!!!

  • @raffaelescala646
    @raffaelescala646 3 роки тому +1

    Really amazing and intersting topic 🔥🔥

    • @Reactiive
      @Reactiive  3 роки тому +1

      Thanks for the support. I really appreciate 🔥

  • @talhaatiq5105
    @talhaatiq5105 2 роки тому

    Loved how you explain ! Please keep making such videos.

  • @raufasgarov1409
    @raufasgarov1409 Рік тому

    this is one of the best reanimated tutorials i have ever seen, thanks man

  • @talhayousaf3918
    @talhayousaf3918 Рік тому

    Best channel for React Native Animations

  • @NoOne-zl4qb
    @NoOne-zl4qb 3 роки тому +4

    Clearest way to teach Reanimated I could find on internet. Tens of hours wasted in other channels, new subscriber here and please more content. Thanks

  • @vx1724
    @vx1724 2 роки тому

    this is one of the best reanimated tutorials i have ever seen, thanks man

  • @kameal96
    @kameal96 Рік тому

    Bro, please make image zoom tutorial

    • @Reactiive
      @Reactiive  Рік тому

      Ho Kameal, search for the PinchGestureHandler tutorial on this channel and I believe you're going to find what you're searching

    • @kameal96
      @kameal96 Рік тому

      @@Reactiive but I need a zoom with pan and pinched combined + double tap and boundries not to outzoom too far ^^

  • @bullettime2808
    @bullettime2808 8 місяців тому

    The Pythagoras theorem part was really clever

  • @weligamage1
    @weligamage1 2 роки тому

    This is really good stuff. Thank you.

  • @kungatashi2779
    @kungatashi2779 2 роки тому

    This channel deserves more subscribers man!!!!

  • @aunghtetlinn6071
    @aunghtetlinn6071 2 роки тому

    Thank you so much for these reanimated series, man.

  • @sivanirushan8436
    @sivanirushan8436 2 роки тому

    how to make that square as touchable?

  • @tumblelandproduction
    @tumblelandproduction 2 роки тому

    I have copied everything exactly up until minute 7 but i am unable to move the square horizontally. What could be the issue?

    • @faikyesilyaprak8761
      @faikyesilyaprak8761 2 роки тому

      The same here, couldn't figure it out :(

    • @tumblelandproduction
      @tumblelandproduction 2 роки тому

      @@faikyesilyaprak8761 if you're using React Native CLI you must wrap the Root Component with the GestureHandlerRootView component (from react-native-gesture-handler)

  • @NicholasVerkaik
    @NicholasVerkaik 2 роки тому

    Enjoyed it.

  • @RandomCrap
    @RandomCrap 3 роки тому

    Can you make the same tutorials without the use of hooks? They are so horrible, cant stand them and not sure why everyone started to use that shit. They make the code base look like a pile of crap