AppRegistry is the JS entry point to running all React Native apps. App root components should register themselves with AppRegistry.registerComponent, then the native system can load the bundle for the app and then actually run the app when it’s ready by invoking AppRegistry.runApplication.
AppRegistry.unmountApplicationComponentAtRootTag with the tag that was passed into runApplication. These should always be used as a pair.
AppRegistry should be required early in the require sequence to make sure the JS execution environment is setup before other modules are required.
Reference
Methods
getAppKeys()
getRegistry()
getRunnable()
getSectionKeys()
getSections()
registerCancellableHeadlessTask()
registerComponent()
registerConfig()
registerHeadlessTask() Android
registerRunnable()
registerSection()
runApplication()
setComponentProviderInstrumentationHook()
hook function accepts the following as arguments:
setWrapperComponentProvider()
startHeadlessTask() Vega Not Available
unmountApplicationComponentAtRootTag()
Type Definitions
AppConfig
Application configuration for theregisterConfig method.
Registry
Runnable
Runnables
An object with key ofappKey and value of type of Runnable.
Task Vega Not Available
A Task is a function that accepts any data as argument and returns a Promise that resolves to undefined.
TaskCanceller Vega Not Available
A TaskCanceller is a function that accepts no argument and returns void.
TaskCancelProvider Vega Not Available
A valid TaskCancelProvider is a function that returns a TaskCanceller.
TaskProvider Vega Not Available
A valid TaskProvider is a function that returns a Task.

