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

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教程:應用程序注冊表
網(wǎng)頁路徑:http://m.jiaoqi3.com/article/copddhc.html


咨詢
建站咨詢
