title: React Native delay `AppRegistry.registerComponent`
body: <p>I want to load some data from an API and then start of the application. How can I do that.
  There is some documentation on the <code>AppRegistry</code> API here <a href="https://reactnative.dev/docs/appregistry" rel="nofollow noreferrer">https://reactnative.dev/docs/appregistry</a> but I can't figure out how to do this.</p>
  <pre><code>import {AppRegistry} from 'react-native';
  import App from './App';
  import {name as appName} from './app.json';
  
  // I want to delay this part
  AppRegistry.registerComponent(appName, () =&gt; App);
  </code></pre>