Skip to content

Commit 7f2b697

Browse files
committed
Add bio text
1 parent b692dee commit 7f2b697

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

components/Profile2/Profile.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,20 @@ const styles = StyleSheet.create({
6969
textAlign: 'center',
7070
},
7171
userImage: {
72-
borderRadius: 40,
73-
height: 80,
72+
borderRadius: 60,
73+
height: 110,
7474
marginBottom: 10,
75-
width: 80,
75+
width: 110,
7676
},
7777
userNameText: {
7878
color: '#5B5A5A',
7979
fontSize: 18,
8080
fontWeight: 'bold',
81-
paddingBottom: 4,
81+
textAlign: 'center',
82+
},
83+
userBioText: {
84+
color: 'gray',
85+
fontSize: 13.5,
8286
textAlign: 'center',
8387
},
8488
userRow: {
@@ -93,6 +97,7 @@ class Profile2 extends Component {
9397
static propTypes = {
9498
avatar: PropTypes.string.isRequired,
9599
name: PropTypes.string.isRequired,
100+
bio: PropTypes.string.isRequired,
96101
containerStyle: PropTypes.object,
97102
tabContainerStyle: PropTypes.object,
98103
posts: PropTypes.arrayOf(
@@ -201,7 +206,7 @@ class Profile2 extends Component {
201206
}
202207

203208
renderContactHeader = () => {
204-
const { avatar, name } = this.props
209+
const { avatar, name, bio } = this.props
205210
return (
206211
<View style={styles.headerContainer}>
207212
<View style={styles.userRow}>
@@ -211,7 +216,12 @@ class Profile2 extends Component {
211216
uri: avatar,
212217
}}
213218
/>
214-
<Text style={styles.userNameText}>{name}</Text>
219+
<View style={{ marginBottom: 10 }}>
220+
<Text style={styles.userNameText}>{name}</Text>
221+
</View>
222+
<View style={{ marginLeft: 40, marginRight: 40 }}>
223+
<Text style={styles.userBioText}>{bio}</Text>
224+
</View>
215225
</View>
216226
<View style={styles.socialRow}>
217227
<View>

0 commit comments

Comments
 (0)