Invariant Violation: Text strings must be rendered within a component

前端 未结 24 842
耶瑟儿~
耶瑟儿~ 2020-12-08 12:59

I\'ve upgraded from RN 0.54 to 0.57 and my app has pretty much fallen over due to using React Native Elements.

I took use of their error functionality on TextI

24条回答
  •  温柔的废话
    2020-12-08 13:39

    In my case some part of the code was out side the text component for example:
     {ToastAndroid.show(value.toString(), ToastAndroid.SHORT)}}
                          buttonSize={4.5}
                          buttonOuterSize={19}
                          selectedButtonColor={'green'}
                          selectedLabelColor={'green'}
                          labelStyle={{ fontSize: 14, }}
                          disabled={false}
                          formHorizontal={true}
                 />
    

    this above line < RadioForm is left unclosed that is the reason

提交回复
热议问题