Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
→
expo install expo-error-recovery
If you're installing this in a bare React Native app, you should also follow these additional installation instructions.
import * as ErrorRecovery from 'expo-error-recovery';
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
. Access to localStorage
is required
on web, or else this will simply be a no-op.
Type: null | ErrorRecoveryProps
Record<string, any>