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.
Files
reValuate/node_modules/expo/build/launch/registerRootComponent.web.js
Yamozha 7256d79e2c yeet
2021-04-02 02:24:13 +03:00

11 lines
566 B
JavaScript

import * as React from 'react';
import { AppRegistry } from 'react-native';
import withExpoRoot from './withExpoRoot';
export default function registerRootComponent(component) {
const App = withExpoRoot(component);
const RootComponent = props => React.createElement(App, Object.assign({}, props));
AppRegistry.registerComponent('main', () => RootComponent);
const rootTag = document.getElementById('root') ?? document.getElementById('main');
AppRegistry.runApplication('main', { rootTag });
}
//# sourceMappingURL=registerRootComponent.web.js.map