This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

View File

@ -0,0 +1,11 @@
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