<Image>
我想在我的组件中添加一个带有图标的“编辑”按钮。以下是我<View>
包含图像的代码。
<View style={{ flex: 1 }}>
<View
style={{
justifyContent: 'space-evenly',
alignItems: 'center',
flexDirection: 'row',
paddingVertical: 10
}}
>
<Image
source={{ uri: 'https://api.adorable.io/avatars/285/test@user.i.png' }}
style={{
marginLeft: 10, width: 100, height: 100, borderRadius: 50
}}
/>
</View>
</View>
如果我能做到这一点会更好,而不用<ListItem>
替换<Image>