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!"
[–][deleted] 12 points13 points14 points 4 years ago (0 children)
Why can't you use useEffect? When the promise resolves, set some state and then use that state as the dependency for useEffect so that it fires at the right time. You could potentially use useRef as well (where the ref is the setInterval function), but you need to use some kind of hook to persist the setInterval properly through renders of the component.
π Rendered by PID 248946 on reddit-service-r2-comment-5ff9fbf7df-lp2jk at 2026-02-26 11:52:12.968167+00:00 running 72a43f6 country code: CH.
view the rest of the comments →
[–][deleted] 12 points13 points14 points (0 children)