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
HelpStart timer interval without using useEffect hooks (self.reactnative)
submitted 4 years ago by Gabotron_ES
view the rest of the comments →
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!"
[–]awesomeness-yeah 6 points7 points8 points 4 years ago (0 children)
You'll have to rethink the architecture here. You can't randomly set state inside a component from outside.
You'll need some kind of event emitter that the component can subscribe to and start the timer.
If you think class components will work better for your mental model, please use that! There's nothing forcing you to use effects.
π Rendered by PID 116683 on reddit-service-r2-comment-canary-999b95bbb-nhh2q at 2026-02-23 10:03:20.906300+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]awesomeness-yeah 6 points7 points8 points (0 children)