React Native 遇到错误Text strings must be rendered within a component.

Invariant Violation: Text strings must be rendered within a component.

React Native 遇到错误Text strings must be rendered within a <Text> component._第1张图片
QQ20180723-104001.png

其主要原因是因为语法错误,找了半天发现多了两个”``“,去掉就没事了。


React Native 遇到错误Text strings must be rendered within a <Text> component._第2张图片
QQ20180723-104240.png

你可能感兴趣的:(React Native 遇到错误Text strings must be rendered within a component.)