React Native · API'ler ve yardımcılar
App
Registers the app's root component.
2 dışa aktarım
İçe aktarma
registerApp
fonksiyonRegisters 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.
Örnekler
APP_COMPONENT_NAME
sabitName 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.