How to listen to uncaught/unhandled errors in React Native

A guide on how to listen to uncaught/unhandled errors in React Native