title: React native How to fetch from api every x minutes
body: <p>I want to run fetch every x Minutes on android (using React native)</p>
  
  <pre><code>function getMoviesFromApiAsync() { 
      return fetch('https://facebook.github.io/react-native/movies.json').then((response) =&gt; response.json()) .then((responseJson) =&gt; { 
    return responseJson.movies; }) .catch((error) =&gt; { console.error(error); }); 
  }
  </code></pre>
  
  <p>I went to use example from documentaion as i am not still sure how would i do this kind of fetch.</p>
  
  <p>Im not sure on how should i even start this(Make a android native Handler maybe?). I only found a component but that is for ios <a href="https://github.com/transistorsoft/react-native-background-fetch" rel="noreferrer">iOS Background Fetch API Implementation</a> </p>