【问题标题】:Do not display content in React native不要在 React Native 中显示内容
【发布时间】:2017-07-15 04:48:19
【问题描述】:

以下是我的代码: enter image description here

我集成了 react-native-ui-kitten。我运行 UI Kitten 的示例应用程序就可以了。但是当我在我的应用程序中实现(带有所有示例)时,它不会显示也不显示数据。 enter image description here

我使用来自 UI Kitten 的相同数据,但在我的应用程序中它不显示数据。空白的。

如何显示数据? (我从 UI Kitten 实现 Feed 样式)。

【问题讨论】:

  • 很难说,因为您没有发布所有代码。另外,您是否收到任何警告或错误?

标签: reactjs react-native react-native-ui-kitten


【解决方案1】:

我的猜测是您将组件放在没有维度的View 中。给它一个维度(例如设置flex: 1),您应该能够看到您的组件。

【讨论】:

猜你喜欢
  • 2021-09-03
  • 1970-01-01
  • 2020-01-25
  • 1970-01-01
  • 2022-07-31
  • 2020-03-07
  • 1970-01-01
  • 2018-06-14
  • 1970-01-01
相关资源
最近更新 更多