【问题标题】:Trouble Loading Expo React Native On Expo Go在 Expo Go 上加载 Expo React Native 时遇到问题
【发布时间】:2021-11-20 22:17:40
【问题描述】:

我无法在 Expo Go 中渲染我的 Expo React Native App 应用程序。应用程序在网络上完全没问题,但是当我尝试在移动设备上渲染时出现这些错误。在我删除某些元素之前它可以工作,但现在我已经添加了更多库,例如本机基础,我开始看到出现更多错误。我对编码有点陌生,所以请耐心等待。谢谢!

移动响应

原始代码

【问题讨论】:

    标签: javascript reactjs react-native expo native-base


    【解决方案1】:
    1. 您需要将 alt 属性添加到 Image 组件 像这样<Image source={} height={} width={} alt="description of image" />

    2. border is not valid style property use from this "borderBottomColor", "borderBottomLeftRadius", "borderBottomRightRadius", "边框底部宽度", “边框颜色”, "borderLeftColor", "borderLeftWidth", "边界半径", "borderRightColor", "borderRightWidth", "边框样式", "borderTopColor", "borderTopLeftRadius", "borderTopRightRadius", "边框顶部宽度", "边框宽度`

    3. 对于 alignItems,您需要传递“flex-start”、“flex-end”、“center”、“baseline”或“stretch”中的任何一个

    【讨论】:

      猜你喜欢
      • 2022-11-16
      • 1970-01-01
      • 1970-01-01
      • 2020-01-31
      • 2018-09-18
      • 2022-11-23
      • 2019-02-28
      • 2021-03-25
      • 1970-01-01
      相关资源
      最近更新 更多