@wordpress/element
Version:
Element React module for WordPress.
15 lines (13 loc) • 454 B
JavaScript
/**
* External dependencies
*/
import { AppRegistry } from 'react-native';
/**
* Registers an app root component allowing the native system to run the app.
*
* @param {string} appKey Unique app name identifier.
* @param {Function} componentProvider Function returning the app root React component.
*/
export const registerComponent = ( appKey, componentProvider ) => {
AppRegistry.registerComponent( appKey, componentProvider );
};