UNPKG

801 BTypeScriptView Raw
1import './ErrorRecovery.fx';
2export declare const recoveredProps: ErrorRecoveryProps | null;
3export declare type ErrorRecoveryProps = Record<string, any>;
4/**
5 * Set arbitrary error recovery props. If your project crashes in production as a result of a fatal
6 * JS error, Expo will reload your project. If you've set these props, they'll be passed to your
7 * reloaded project's initial props under `exp.errorRecovery`. Access to `localStorage` is required
8 * on web, or else this will simply be a no-op.
9 *
10 * [Read more about error handling with Expo](/guides/errors).
11 * @param props An object which will be passed to your reloaded project's initial props if the
12 * project was reloaded as a result of a fatal JS error.
13 */
14export declare function setRecoveryProps(props: ErrorRecoveryProps): void;