AppRegistry
AppRegistry is the control point for registering, running, prerendering, and unmounting all apps.
App root components should register themselves with AppRegistry.
registerComponent. Apps can be run by invoking AppRegistry.runApplication
.
import { AppRegistry } from 'react-native';
API
Static methods
Returns an array of all registered app keys
A web-only method for server-side rendering to HTML and CSS. It returns an object containing the given application’s element
and getStyleElement
function to get styles once the element is rendered.
Register a component provider under the given key
.
Register multiple applications.
Called this function with the rootTag
that was passed into runApplication
in order to unmount it.
AppConfig
The key
under which the component is registered.
A function that returns a React element.
AppParams
Called when React rendering has finished.
If the client should hydrate server-rendered HTML.
The initial props passed to the root component.
Default is ‘concurrent’. Setting to ‘legacy’ will make the app will behave as if it’s running React 17.
The native element into which the application is rendered.