【发布时间】:2019-08-20 08:57:01
【问题描述】:
这是我的代码:
const imageSource = autoData.imgSource ? autoData.imgSource : autoData.downloadURL;
return (
<View style={styles.main}>
(!imageSource? <ActivityIndicator size="large" /> :
<Image source={imageSource} style={styles.image} />
)
</View>
所以基本上我想显示那个微调器,如果我没有得到任何信息
Invariant Violation: Text strings must be rendered within a <Text> component.
【问题讨论】: