【问题标题】:React Native Integration with Existing AppReact Native 与现有应用程序的集成
【发布时间】:2015-04-23 06:35:40
【问题描述】:

我想与现有的应用程序集成。

在 ReactNative 文档中:

Remember to install all subspecs you need. The <Text> element cannot be used without pod 'React/RCTText'.

现在,模拟器出了点问题:

Cant't find variable:ListView

我想使用&lt;ListView&gt;,我将安装哪些子规范?

【问题讨论】:

    标签: ios react-native


    【解决方案1】:

    当你 pod 'React' 时可以使用 ListView,我认为你的 javascript 代码可能有问题。你的js文件中包含这些代码了吗?

    var {
      ListView,
    } = React;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-28
      • 2017-06-26
      • 1970-01-01
      • 2018-08-29
      • 1970-01-01
      • 2017-05-02
      相关资源
      最近更新 更多