【问题标题】:Using native ios views in React Native在 React Native 中使用原生 ios 视图
【发布时间】:2015-04-05 15:49:09
【问题描述】:

除了通过js文件中的react native(ListView,Text等)交付之外,还有其他方法可以使用原生ui组件吗?

例如,我有一个由 react native 创建的应用程序,我想在其中使用MWPhotoBrowser

【问题讨论】:

    标签: ios react-native


    【解决方案1】:

    是的。如果你看一下this section of the docs,在标题“可扩展性”下,有一点说“可以通过继承 RCTViewManager 来公开自定义 iOS 视图”。这应该可以帮助您入门,然后您可以查看 examples of view classes that subclass RCTViewManager 的 React Native 源代码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-14
      • 1970-01-01
      • 1970-01-01
      • 2018-01-14
      • 1970-01-01
      • 2017-01-31
      • 2018-01-13
      相关资源
      最近更新 更多