【发布时间】:2015-04-05 15:49:09
【问题描述】:
除了通过js文件中的react native(ListView,Text等)交付之外,还有其他方法可以使用原生ui组件吗?
例如,我有一个由 react native 创建的应用程序,我想在其中使用MWPhotoBrowser。
【问题讨论】:
标签: ios react-native
除了通过js文件中的react native(ListView,Text等)交付之外,还有其他方法可以使用原生ui组件吗?
例如,我有一个由 react native 创建的应用程序,我想在其中使用MWPhotoBrowser。
【问题讨论】:
标签: ios react-native
是的。如果你看一下this section of the docs,在标题“可扩展性”下,有一点说“可以通过继承 RCTViewManager 来公开自定义 iOS 视图”。这应该可以帮助您入门,然后您可以查看 examples of view classes that subclass RCTViewManager 的 React Native 源代码。
【讨论】: