Invariant Violation: Text strings must be rendered within a component

前端 未结 24 890
耶瑟儿~
耶瑟儿~ 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:36

    I had the same problem, In my case I had an component which shows simple formatted under the hood.

    First code was like

    while I was trying different things I just wrote it with self-closing syntax

    then problem was suddenly solved.

    I think it was just about a special & invisible character I wrote between tags by mistake or this character was coming from VSCode by auto-complete feature or snippets, because I couldn't repeat the error by placing a space.

提交回复
热议问题