新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
創(chuàng)新互聯(lián)React教程:應(yīng)用程序注冊(cè)表
AppRegistry 是運(yùn)行所有 React Native 應(yīng)用程序的 JS 入口點(diǎn)。應(yīng)用程序跟組件需要通過(guò)AppRegistry.registerComponent 來(lái)注冊(cè)它們自身,然后本地系統(tǒng)就可以加載應(yīng)用程序的包,再然后當(dāng)AppRegistry.runApplication準(zhǔn)備就緒后就可以真正的運(yùn)行該應(yīng)用程序了。

AppRegistry 在 require 序列里是 required,確保在其他模塊被需求之前 JS 執(zhí)行環(huán)境已經(jīng)被 required。
方法
static **registerConfig**(config: Array) static **registerComponent**(appKey: string, getComponentFunc: Function) static **registerRunnable**(appKey: string, func: Function) static **runApplication**(appKey: string, appParameters: any)
名稱欄目:創(chuàng)新互聯(lián)React教程:應(yīng)用程序注冊(cè)表
轉(zhuǎn)載注明:http://m.5511xx.com/article/copddhc.html


咨詢
建站咨詢
