【问题标题】:How to fix React Native RTCView Error: Cannot add a child that doesn't have a YogaNode to a parent without a measure function如何修复 React Native RTCView 错误:无法将没有 YogaNode 的子级添加到没有测量功能的父级
【发布时间】:2020-08-16 23:09:57
【问题描述】:

错误是:无法将没有 YogaNode 的子节点添加到没有度量函数的父节点! (尝试将“[RTCVirtualText 735]”添加到“[RCTView 737]”)。

<View style={{flex:0.6,marginTop:"10%",alignItems:"center"}}>
          <Text>Don't have an account? <TouchableOpacity onPress={ () => navigation.navigate("Sign Up") }><Text style={{fontWeight:"bold"}}>Sign up!</Text></TouchableOpacity></Text>
</View>

【问题讨论】:

    标签: reactjs react-native view


    【解决方案1】:

    故障排除后 - Text 组件内的 TouchableOpacity 组件导致了错误。不知道为什么。

    【讨论】:

      猜你喜欢
      • 2018-12-02
      • 2018-07-11
      • 2018-06-29
      • 1970-01-01
      • 2018-03-18
      • 1970-01-01
      • 1970-01-01
      • 2019-01-20
      • 2019-01-19
      相关资源
      最近更新 更多