title: Global unhandledrejection listener in React Native
body: <p>Is there any equivalent for</p>
  
  <p><code>window.addEventListener('unhandledrejection', (event) =&gt; {});</code></p>
  
  <p>in React Native?</p>
  
  <p>I know I could wrap the fetch api to handle most of the unhandledrejection events in a single place but the global handler would help with any promise not only the one coming from the fetch api.</p>