A Guide to React Native Optimisation

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

КОМЕНТАРІ • 75

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

    Your way of explanation is so calming!

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

      I’m very happy you liked it! I think it’s important to keep it simple and calm to learn things well. Glad it found you well Mukul :)

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

    Great video. Not only you did a great job TLDRing the Callstack guide but also represented it so well. Kudos dude!

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

      Thank you Luiz, I'm not used to see you on youtube! :)

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

      @@eveningkid I'm around :) keep up with the good content man!

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

    Always happy you do all the reading and give me the TLDR; ❤️

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

      haha, it took me countless hours, lucky you!

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

    simple, concise and so well explained. It's always great seeing your content maintaining its amazing quality standard. Looking forward to more!

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

      I see you're still around Usama, thank you for the kind words! Always trying to improve the videos. I'm glad it's appreciated :)

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

    Production quality of this content is top tier

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

      Thank you, this was indeed a lot of work! Very happy you liked it :)

  • @Quacky_Batak
    @Quacky_Batak 3 роки тому +15

    The first point is very important while working with optimizing both React and React Native. Not just reducing the re-renders but also lookin into if you can combine together or use useCallback and useMemo (don't overdo these things also)
    Another great and "smooth" video. Excited for this series.

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

      You're exactly right! Thanks, this one was a lot of work to keep it smooth. Happy you liked it :)

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

    what an amazing advice!, thanks man

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

    Great information. Thanks!

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

    This material is so important, thanks for making a recap of the guide. I'm excited for more about optimization 🔥

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

    Really nice work..

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

    Thanks for sharing!

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

    Underrated Channnel

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

      Man I hope UA-cam could give me a little hand on this!

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

      @@eveningkid gotta get a medium article or run some ads maybe

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

    Excellent piece! And thank you for reminding me that I have to fix that constant re-rendering when I type anything in the TextImput... hehe

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

      I think we often forget about the text input one! Thank you for the kind words, I always appreciate it :)

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

    This is so awesome. Great job!

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

    Great work! Thanks for the video

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

      Thank you Ramin, my pleasure :)

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

    Really helpful.

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

    Just in time for the optimizations we are making in our app! Awesome!

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

      Wow, that was unexpected! Cool, hope this helps you in a way :)

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

    absolutely amazing!

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

      Thank you Alexander! It says you've been on the channel for 3 months. Dang, that's awesome :)

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

    Great info brother.
    There are some points i would like to add :
    1. We can use RecyclerListView instead of Flat list. It would render the items fast.
    2. We can create our own custom hooks or context api for using state over redux because redux can be a little heavy at times.
    3. For checking re rendering over all components we can create our own hook using useRef and increasing the current ref value on each render and keep the updated count.
    4. Enabling Hermes and using the V8 engine smoothes overall performance.
    5. Making better use of useCallback and useMemo
    6. Increasing heap memory size for android could be beneficial too.
    7. Try never to pass {...props} to child components, it would be better to share the common global state instead of passing down props.

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

      Great additional info, there's actually more to come in next episodes (about Hermes also). I hope people see your comment, thank you for taking the time to share these :)

  • @뱅수는대근혀
    @뱅수는대근혀 2 роки тому

    Thank you

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

    so awesome

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

    Man, I'm struggling with sticky headers and scroll header animations, would love a tutorial on that.

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

      Did you find something? Im also struggling with it, the onScroll from FlatList doesn't work so smoothly on android devices ): Im trying to make a sticky header too.

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

      I also was struggling, the key is to create an animated value and use it inside scroll event to track when the user scrolls and bind it to the view you want to animate. On the animated style you play with the input/output range to get the sticky header

  • @-seven-
    @-seven- 3 роки тому

    This is it bois! The go to optimisation series 🥳🥳🥳
    Have a lot of juniors in my team struggling with optimisations, going to share this to oblivion lol.

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

      Wow that's really cool Sanu! Are you in a big team of RN devs? :)

    • @-seven-
      @-seven- 3 роки тому

      @@eveningkid hahaha depends on if you can call a team of 8-10 big 😇

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

    Amazing! 🔥

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

    great content!!

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

      Thank you Bayram, happy you liked it :)

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

    This is what i exactly needed.. Also it will be very helpful if you can make a dedicated video and explain how and when we should memorize the functions and components and also the pure components.
    I was working on an Instagram clone..
    And day by day its becoming slow.sometimes Clicks respond after 2-3 seconds. I really couldn't understand what am i doing wrong. It has all the functionalities Instagram have.. Probably 60+ screens and 80+ components.
    Some of things got cleared today.
    I was not using redux.
    Not using memorization.
    Not using pure components.
    I'll work on these now.
    Thank you for this video ❤️

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

      Wow, +60 screens is a lot indeed! Very happy this found you well. I'll see what I can do for a "memo" tutorial. There's just so much on my plate right now, it's hard to do it all! :)

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

      @@eveningkid i understand.. Although this video clears the picture alot. ❤️

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

    what microphone are you using?

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

    Please what app did you use for your video presentation

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

    Do you think nativewind is good for react-native?

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

    Did you guys play with play/pause button at 1:08?

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

      ...what do you mean? :D

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

      Play with play/pause button at 1:08 in landscape mode

  • @gamer-tantrik
    @gamer-tantrik 3 роки тому

    U will go very far man ...to the moon. 🌝

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

      Thank you for the kind words DreadPool (nice name btw!) :)

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

    Can you provide an example of an uncontrolled component in React Native? onChangeText={() => { // updateRef } ?

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

      Sure:
      const [text, setText] = useState('jonas');
      return ;
      That's all :)

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

    Tried using reanimated V2 today. I was using withSequence idk if its related but the more I trigger animation the more it gets slower

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

      That's odd, you should reach out to the team/repo, I'm sure there's an explanation to this...!

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

      @@eveningkid Found the problem. İt was my mistake 🙃

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

    always with great videos! thank you man! ... Let's talk about redux! :0

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

      Thank you gonz! Redux? What exactly about Redux? 🤔

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

    Please please make a video on Instagram reels🤐🤐😔❤️

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

      What do you mean exactly? :)

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

    ✌✌✌

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

    Is everything cool bro? No new vids in a couple of weeks... Hope you're okay

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

      Yes, life sometimes. I do what I can but wish it could be more! I should make a live tomorrow, if you’re around and want to join. There’s also a video planned but it’s out of my control (I’ll talk about it too). Thanks for checking on me, it really means a lot (like really!)

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

    If ( thumbnail != Title ) {
    Comment( "😑😑😑");
    }
    😑😑😑
    😆

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

    I love the video, but I hate zucchini!

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

      haha, good thing it was only on-screen for 5 seconds then :)

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

      @@eveningkid 😂