title: React Native Polling
body: <p>I'm trying to implement some api polling code, this is what I've got so far:</p>
  
  <pre><code>async retrieveNotifications() {
    const res = await fetch(url)
    if (res.status === 200) {
      this.props.setNotifications(res.data)
    }
    setTimeout(() =&gt; {
      this.retrieveNotifications()
      // polling in 10 min cycles
    }, 600000);
  }
  </code></pre>
  
  <p>the code works, however the question is if this has any performance downsides because its recursive? Does anyone know a better solution for polling in rn ? Thanks for the help :)</p>