Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
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.
To “stop” an application when a view should be destroyed, call 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()

Returns an array of strings.

getRegistry()

Returns a Registry object.

getRunnable()

Returns a Runnable object. Parameters:

getSectionKeys()

Returns an array of strings.

getSections()

Returns a Runnables object.

registerCancellableHeadlessTask()

Register a headless task which can be cancelled. A headless task is a bit of code that runs without a UI. Parameters:

registerComponent()

Parameters:

registerConfig()

Parameters:

registerHeadlessTask() Android

Register a headless task. A headless task is a bit of code that runs without a UI. This is a way to run tasks in JavaScript while your app is in the background. It can be used, for example, to sync fresh data, handle push notifications, or play music. Parameters:

registerRunnable()

Parameters:

registerSection()

Parameters:

runApplication()

Loads the JavaScript bundle and runs the app. Parameters:

setComponentProviderInstrumentationHook()

Parameters: A valid hook function accepts the following as arguments: The function must also return a React Component.

setWrapperComponentProvider()

Parameters:

startHeadlessTask() Vega Not Available

Only called from native code. Starts a headless task. Parameters:

unmountApplicationComponentAtRootTag()

Stops an application when a view should be destroyed. Parameters:

Type Definitions

AppConfig

Application configuration for the registerConfig method. Properties:

Registry

Properties:

Runnable

Properties:

Runnables

An object with key of appKey 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.
Last modified on May 13, 2026