Fuechter
我正在尝试在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>
)
}
打印屏幕:
阿克萨特尔
我也面临着同样的错误。经过大量尝试后,我重新启动了打包程序,然后应用程序拾取了图像。因此,解决方案是:重新启动打包程序。
希望这可以帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
编辑于
我来说两句