我应该如何放置背景图像? defaultSource无法正常工作
<Image
testID="productImage"
style={styles.productImage}
source={{ uri: item.images[0].url }}
defaultSource={require('../../assets/no-photo.png')}
onError={source => require('../../assets/no-photo.png')}
/>