在 React Native 中使用原生 ios 视图

Using native ios views in React Native

有没有办法在 js 文件中使用本机 ui 组件,除了 React Native(ListView、Text 等)提供的组件?

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

是的。如果你看一下 this section of the docs, under the title "Extensibility", then there's a bit that says "Custom iOS views can be exposed by subclassing RCTViewManager". This should get you started and then you can look at the React Native source code for examples of view classes that subclass RCTViewManager.