我正在try 在React native上的组件上显示图像,但我不知道为什么会发生此错误...
代码示例:
render () {
let { convenience } = this.props
return (
<View style={{flexDirection: 'row', height: 50}}>
<Text style={{marginRight: 30}}>{convenience.name}</Text>
<Image source={require('./icons___favorito_ativo.png')} />
</View>
)
}
打印屏幕: