【React Native】文件翻譯閱讀紀錄 - APIs - AppRegistry
Facebook Open Source React Native |
AppRegistry
Methods
setWrapperComponentProvider
registerConfig
registerComponent
registerRunnable
registerSection
getAppKeys
getSectionKeys
getSections
getRunnable
getRegistry
setComponentProviderInstrumentationHook
runApplication
unmountApplicationComponentAtRootTag
registerHeadlessTask
startHeadlessTask
參考
Methods
setWrapperComponentProvider()
static setWrapperComponentProvider(provider)
registerConfig()
static registerConfig(config)
registerComponent()
static registerComponent(appKey, componentProvider, section?)
registerRunnable()
static registerRunnable(appKey, run)
registerSection()
static registerSection(appKey, component)
getAppKeys()
static getAppKeys()
getSectionKeys()
static getSectionKeys()
getSections()
static getSections()
getRunnable()
static getRunnable(appKey)
getRegistry()
static getRegistry()
setComponentProviderInstrumentationHook()
static setComponentProviderInstrumentationHook(hook)
runApplication()
static runApplication(appKey, appParameters)
unmountApplicationComponentAtRootTag()
static unmountApplicationComponentAtRootTag(rootTag)
registerHeadlessTask()
static registerHeadlessTask(taskKey, task)
註冊無頭任務。無頭任務是在沒有UI的情況下運行的一些代碼。 @param taskKey與此任務相關聯的鍵@param task一個promise返回函數,它將從本機端傳遞的一些數據作為唯一參數;當promise被解決或被拒絕時,本機會通知此事件,並且它可能決定銷毀JS上下文。
startHeadlessTask()
static startHeadlessTask(taskId, taskKey, data)
僅從本機代碼調用。開始無頭任務。
@param taskId此任務實例的本機id跟踪其執行情況@param taskKey任務啟動@param數據的關鍵數據傳遞給任務
@param taskId此任務實例的本機id跟踪其執行情況@param taskKey任務啟動@param數據的關鍵數據傳遞給任務
0 意見