UNPKG

react-native-cn-richtext-editor

Version:
12 lines 637 B
import * as React from 'react'; import { AppRegistry } from 'react-native'; import withExpoRoot from './withExpoRoot'; export default function registerRootComponent(component) { const App = withExpoRoot(component); // @ts-ignore: TypeScript says ComponentClass<P> does not satisfy ComponentClass<any> 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