You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.1 KiB

import './ErrorRecovery.fx';
/** @deprecated This package only works with the deprecated classic Expo build service. */
export declare const recoveredProps: ErrorRecoveryProps | null;
/** @deprecated This package only works with the deprecated classic Expo build service. */
export declare type ErrorRecoveryProps = Record<string, any>;
/**
* @deprecated This package only works with the deprecated classic Expo build service.
*
* 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.
*
* [Read more about error handling with Expo](/guides/errors).
* @param props 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.
*/
export declare function setRecoveryProps(props: ErrorRecoveryProps): void;
//# sourceMappingURL=ErrorRecovery.d.ts.map