reactnativecn / react-native.cn

reactnative.cn home site.
http://reactnative.cn
Other
588 stars 507 forks source link

原生组件调用失败 #234

Closed jiajun1203 closed 6 years ago

jiajun1203 commented 6 years ago

使用指南(IOS)-原生组件

XCode中配置好后,RN中获取原生View module.exports = requireNativeComponent('RNTMap', null);

RNTMap是从哪里来的? 一直无法找到。 现在的项目和文档中的一样,也是因为无法找到标识无法获取到原生View。

sunnylqm commented 6 years ago

requireNativeComponent 自动把'RNTMap'解析为'RNTMapManager'

jiajun1203 commented 6 years ago

Thanks,改好了!

发自网易邮箱大师 在2018年04月25日 15:05,Sunny Luo 写道:

Closed #234.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.