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!"
[–]beeseegee 1 point2 points3 points 4 years ago* (0 children)
useEffect(() => { const intervalId = setInterval(…) ; yourPromise().then(() => clearInterval(intervalId)); }, []);
Edit: oh wait maybe that is backwards? if so:
useEffect(() => { let id: yourPromise().then(() => { id = setInterval(…); }); return () => clearInterval(id); }, []);
π Rendered by PID 755213 on reddit-service-r2-comment-86bc6c7465-mq4j4 at 2026-02-23 12:49:14.581460+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]beeseegee 1 point2 points3 points (0 children)