This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo/build/launch/withExpoRoot.web.js
2021-04-02 02:24:13 +03:00

14 lines
533 B
JavaScript

import * as ErrorRecovery from 'expo-error-recovery';
import * as React from 'react';
export default function withExpoRoot(AppRootComponent) {
return class ExpoRootComponent extends React.Component {
render() {
const props = {
...this.props,
exp: { ...this.props.exp, errorRecovery: ErrorRecovery.recoveredProps },
};
return React.createElement(AppRootComponent, Object.assign({}, props));
}
};
}
//# sourceMappingURL=withExpoRoot.web.js.map