Skip to content

Commit 7917f5f

Browse files
author
Peter Piekarczyk
committed
add avatar container
1 parent 1e6e8d6 commit 7917f5f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/index.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@ const styles = StyleSheet.create({
1717
borderRadius: 10,
1818
marginBottom: 20
1919
},
20-
avatar: {
20+
avatarContainer: {
2121
width: 40,
2222
height: 40,
2323
borderRadius: 20,
2424
borderColor: 'white',
2525
borderWidth: 1.5,
2626
borderStyle: 'solid'
2727
},
28+
avatar: {
29+
width: 40,
30+
height: 40,
31+
borderRadius: 20,
32+
},
2833
extra: {
2934
backgroundColor: '#b6c0ca',
3035
justifyContent: 'center',
@@ -40,11 +45,13 @@ const styles = StyleSheet.create({
4045
function renderFace (face, index) {
4146
return (
4247
<View key={face.id || index} style={styles.circle}>
43-
<Image
44-
style={styles.avatar}
45-
source={{ uri: face.imageUrl }}
46-
resizeMode='contain'
47-
/>
48+
<View style={styles.avatarContainer}>
49+
<Image
50+
style={styles.avatar}
51+
source={{ uri: face.imageUrl }}
52+
resizeMode='contain'
53+
/>
54+
</View>
4855
</View>
4956
)
5057
}

0 commit comments

Comments
 (0)