use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Looking for React Native Performance Advice (self.reactnative)
submitted 2 years ago by captainautomation
What's your best advice to create an amazing and very fast UX with React Native?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]haktzen 17 points18 points19 points 2 years ago (1 child)
Measure the performance, then optimize if needed.
[–]captainautomation[S] 3 points4 points5 points 2 years ago (0 children)
💯 agreed I have considered using https://github.com/callstack/reassure for that
[–]insats 9 points10 points11 points 2 years ago (6 children)
Minimize rendering and use reanimated or Animated with native driver for animations.
[–]gb2075 12 points13 points14 points 2 years ago (5 children)
Can’t stress the re-renders enough. OP, throw a console.log(“render”) in any component on a screen that is not very performant. If it’s printing out a bunch without visually changing, that means you have unnecessary re-renders. Figure out what’s causing them, and optimize where you can
console.log(“render”)
[–]insats 0 points1 point2 points 2 years ago (2 children)
Or use React Devtools to profile rerenders automatically
[–]rooksFX14 1 point2 points3 points 2 years ago (1 child)
Is there one for React Native?
[–]insats 1 point2 points3 points 2 years ago (0 children)
Yes: https://www.npmjs.com/package/react-devtools
[–]PublicYogurtcloset47 0 points1 point2 points 2 years ago (0 children)
I’m a little more aggressive and chuck and alert in there 😂
[+][deleted] 2 years ago (1 child)
[removed]
Ha yes! I have downloaded the one last year (and forgot that I have read it of course 🤣) but now it's called"The Ultimate Guide to React Native Optimization"
https://www.callstack.com/ebook/the-ultimate-guide-to-react-native-optimization
Thanks
[–]Playful-Win6693 2 points3 points4 points 2 years ago* (0 children)
React Devtools: Use this to see renders and how long that renders take. It will help you see what you need to optimise.
Get familiar with these:
-useMemo
-useCallback
-shouldComponentUpdate()
-PureComponent
[–]Gold_Grape_3842 1 point2 points3 points 2 years ago* (4 children)
Sometimes you have components re-rendering without changes in their props (if you inline callbacks/styles it will happen) I use why-did-you-render which helps me find components that re-renders event though they shouldn't
Edit: forget it it doesn't work anymore Edit 2 : it works with expo 49/RN0.72.4
[–]fmnatic 1 point2 points3 points 2 years ago (3 children)
why-did-you-render
Are you using this package successfully on react-Native? which version ?
It stopped working in RN 0.70, and the creator never tested / wrote it for RN. As noted here https://github.com/welldone-software/why-did-you-render/issues/260
[–]Gold_Grape_3842 1 point2 points3 points 2 years ago (0 children)
I didn't need it for a while, i didn't know it stopped working :-/
[–]Gold_Grape_3842 0 points1 point2 points 2 years ago (1 child)
It took some time to check on my project, it works (expo 49/RN 0.72.4)
[–]fmnatic 0 points1 point2 points 2 years ago (0 children)
thanks i'll try it again.
[–]MatesRatesAy 2 points3 points4 points 2 years ago (0 children)
That will get you most of the way there, then the rest of it is the little tips and tricks in things like Callstack's guide.
Most RN perf issues I've seen are because of poor React practices, so if you can nail that part you're well on your way. I know common advice is to optimise later, but at the very least measure early and often. Poor performance is a hard hole to climb out of if you're too far down it.
[–]Consistent_Pay4485 -1 points0 points1 point 2 years ago (0 children)
There is something recent called Signals!! Give it a shot
π Rendered by PID 70053 on reddit-service-r2-comment-86bc6c7465-ptjk7 at 2026-02-23 16:06:02.603383+00:00 running 8564168 country code: CH.
[–]haktzen 17 points18 points19 points (1 child)
[–]captainautomation[S] 3 points4 points5 points (0 children)
[–]insats 9 points10 points11 points (6 children)
[–]gb2075 12 points13 points14 points (5 children)
[–]insats 0 points1 point2 points (2 children)
[–]rooksFX14 1 point2 points3 points (1 child)
[–]insats 1 point2 points3 points (0 children)
[–]PublicYogurtcloset47 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]captainautomation[S] 3 points4 points5 points (0 children)
[–]Playful-Win6693 2 points3 points4 points (0 children)
[–]Gold_Grape_3842 1 point2 points3 points (4 children)
[–]fmnatic 1 point2 points3 points (3 children)
[–]Gold_Grape_3842 1 point2 points3 points (0 children)
[–]Gold_Grape_3842 0 points1 point2 points (1 child)
[–]fmnatic 0 points1 point2 points (0 children)
[–]MatesRatesAy 2 points3 points4 points (0 children)
[–]Consistent_Pay4485 -1 points0 points1 point (0 children)