Skip to main content

AppRegistry

Entry point to register and run React Native apps.

Common usage

AppRegistry.registerComponent("MyApp", () => App.make)
AppRegistry.runApplication("MyApp", {"initialProps": {}})

Other methods

AppRegistry.getAppKeys() // array<string>
AppRegistry.registerRunnable(appKey, params => ())
AppRegistry.registerSection(appKey, () => Section.make)
AppRegistry.unmountApplicationComponentAtRootTag(rootTag)

// Android headless tasks
AppRegistry.registerHeadlessTask(taskKey, () => data => promise)
AppRegistry.startHeadlessTask(taskId, taskKey, data)