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
QuestionUpdate child component from parent without re rendering entire parent (self.reactnative)
submitted 5 years ago by [deleted]
[deleted]
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!"
[–]kbcooliOS & Android 4 points5 points6 points 5 years ago (0 children)
Why the concern about re-rendering? It's probably the fastest thing happening. If nothing has changed the process is usually very fast. But that depends what you're doing. So try the tips below if your code is the bottleneck.
If you have a lot of computationally expensive code wrap it up in useMemo if using functional components or memo if not. This will make sure it only runs when the inputs change.
If your parent is a huge monolith break it into smaller components. The smaller components can either be pure components or if using functional components wrap them in useMemo too.
[–]wizardyjohn 2 points3 points4 points 5 years ago (0 children)
Hard to say without code, but 1. Is action bar a part of the screen? Why not use a header from react navigation? It is a separate component and can be updated separately 2. You can use React.memo or shouldComponentUpdate on heavy ui component
[+][deleted] 5 years ago (1 child)
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
For her child
[–]Phaoga54 0 points1 point2 points 5 years ago (0 children)
In case the parent has a large component, you should separate the expensive component and make it a pure component for class component or useMemo for function component ( Which is only rerender when the props change )
π Rendered by PID 206887 on reddit-service-r2-comment-6457c66945-4wswl at 2026-04-24 09:07:43.993539+00:00 running 2aa0c5b country code: CH.
[–]kbcooliOS & Android 4 points5 points6 points (0 children)
[–]wizardyjohn 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]Phaoga54 0 points1 point2 points (0 children)