React Native 原生平臺調用React Native組件

React Native 應用根組件的註冊和調用 ,原理如下圖: AppRegistry.registerComponent 接口將React Native 平臺的根組件 RNTransplant 註冊到了原生平臺上。當React Native啓動時,原生平臺會調用該組件,iOS工程中調用 React Native 組件的AppDelegate.m 代碼爲:
相關文章
相關標籤/搜索