Utilities for helping you gracefully handle crashes due to fatal JavaScript errors.
Platform Compatibility
Android Device
Android Emulator
iOS Device
iOS Simulator
Web
✅
✅
✅
✅
✅
Installation
This API is pre-installed in managed apps. It is not available to bare React Native apps.
API
import{ ErrorRecovery }from'expo';
ErrorRecovery.setRecoveryProps(props)
Set arbitrary error recovery props. If your project crashes in production as a result of a fatal JS error, Expo will reload your project. If you've set these props, they'll be passed to your reloaded project's initial props under exp.errorRecovery. Read more about error handling with Expo.
Arguments
props (object) -- An object which will be passed to your reloaded project's initial props if the project was reloaded as a result of a fatal JS error.