GT2/Ejectable/node_modules/expo/build/launch/withExpoRoot.web.js

14 lines
533 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
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