react-native-cn-richtext-editor
Version:
RichText Editor for React-Native
12 lines • 637 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);
// @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