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

176
Views
React Native Async Interval Function Performance Issue

I have a react native component which is running an async function on an interval timer. When testing this on an old android phone I was surprised to see some serious performance issues.

Any buttons in the UI are completely unresponsive whilst the testIntervalAsync function is running, but oddly the nested ScrollView component is perfectly responsive to touch (it can still be scrolled).

I'm fairly new to react native, so would anyone be able to give any insight into why it runs so slowly?

const TestScreen = ({}: TestScreenProps) => {
...
useEffect(() => {
  const interval = setInterval( async () => {
      testIntervalAsync ();
    }, 1000);

  const testIntervalAsync = async () => {
    for(let i = 0; i < 5000; i++ )
      console.log("Test interval: ", i);
      };

  return (() => {
    clearInterval(interval);
    })
  }, []);

return (
    <Box>
      ...
      <ScrollView>
        ...
      </ScrollView>
      ...
    </Box>
    );
};
about 4 years ago · Juan Pablo Isaza
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!