Open ShirlyChenLaLaLa opened 6 years ago
<View style={styles.imgBox}> <Image source={{ uri: 'your image url' }} style={styles.img} /> </View>
const styles = EStyleSheet.create({ imgBox: { width: px(72), height: px(72), borderBottomLeftRadius: 2, borderTopLeftRadius: 2, overflow: 'hidden', }, img: { width: px(72), height: px(72), }, })
适用于ios
假设仅对Image标签的左上角和左下角设置半径。
适用于ios