Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
Call multiple function functions periodically with different delays in react native

I need to call multiple functions periodically with different delays in react-native. For calling all functions periodically at once I could use -

const interval = setInterval(() => {
     function1();
     function2();
      ....
}, 2000);

But in my case I need to call function1 after every 2 seconds, function2 after every 5 seconds, function3 after every 3 seconds and so on. Any help will be appreciated. Thank you.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Have you tried using multiple setIntervals in the same function and calling that function?

 const callIntervals = () =>{
    
  setInterval(() => {
    function1();
  }, 2000);

  setInterval(() => {
    function2();
  }, 5000);

  setInterval(() => {
    function3();
  }, 3000);
  
}
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!