React Native · APIs and utilities
App
Registers the app's root component.
2 exports
Import
registerApp
functionRegisters the app's root component. Call it once in index.js instead of AppRegistry.registerComponent; the app needs no app.json, because the native projects open the fixed APP_COMPONENT_NAME that sync writes into them.
Examples
APP_COMPONENT_NAME
constantName the root component is registered under. sync writes it into the native projects (getMainComponentName on Android, withModuleName on iOS), so the app's display and project name (ui.config name) can change without touching the JavaScript entry.