UNPKG

react-native-trimmer

Version:

A Trimmer component that renders in iOS and Android and built entirely in React Native.

11 lines 542 B
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 => <App exp={{}} {...props}/>; AppRegistry.registerComponent('main', () => RootComponent); const rootTag = document.getElementById('root') || document.getElementById('main'); AppRegistry.runApplication('main', { rootTag }); } //# sourceMappingURL=registerRootComponent.web.js.map