Skip to content

Commit b8a10ba

Browse files
committed
Update TabLabel style
1 parent 9b2397a commit b8a10ba

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

components/Profile2/Profile.js

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,18 @@ const styles = StyleSheet.create({
6262
textAlign: 'center',
6363
},
6464
tabLabelText: {
65+
color: 'black',
66+
fontSize: 22.5,
67+
fontWeight: '600',
68+
textAlign: 'center',
69+
},
70+
userBioRow: {
71+
marginLeft: 40,
72+
marginRight: 40,
73+
},
74+
userBioText: {
6575
color: 'gray',
66-
fontSize: 17.5,
67-
fontWeight: '400',
68-
marginBottom: 4,
76+
fontSize: 13.5,
6977
textAlign: 'center',
7078
},
7179
userImage: {
@@ -74,17 +82,15 @@ const styles = StyleSheet.create({
7482
marginBottom: 10,
7583
width: 110,
7684
},
85+
userNameRow: {
86+
marginBottom: 10,
87+
},
7788
userNameText: {
7889
color: '#5B5A5A',
7990
fontSize: 18,
8091
fontWeight: 'bold',
8192
textAlign: 'center',
8293
},
83-
userBioText: {
84-
color: 'gray',
85-
fontSize: 13.5,
86-
textAlign: 'center',
87-
},
8894
userRow: {
8995
alignItems: 'center',
9096
flexDirection: 'column',
@@ -126,10 +132,10 @@ class Profile2 extends Component {
126132
tabs: {
127133
index: 0,
128134
routes: [
129-
{ key: '1', title: 'Active', count: 31 },
130-
{ key: '2', title: 'Like', count: 86 },
131-
{ key: '3', title: 'Following', count: 95 },
132-
{ key: '4', title: 'Followers', count: '1.3 K' },
135+
{ key: '1', title: 'active', count: 31 },
136+
{ key: '2', title: 'like', count: 86 },
137+
{ key: '3', title: 'following', count: 95 },
138+
{ key: '4', title: 'followers', count: '1.3 K' },
133139
],
134140
},
135141
}
@@ -216,10 +222,10 @@ class Profile2 extends Component {
216222
uri: avatar,
217223
}}
218224
/>
219-
<View style={{ marginBottom: 10 }}>
225+
<View style={styles.userNameRow}>
220226
<Text style={styles.userNameText}>{name}</Text>
221227
</View>
222-
<View style={{ marginLeft: 40, marginRight: 40 }}>
228+
<View style={styles.userBioRow}>
223229
<Text style={styles.userBioText}>{bio}</Text>
224230
</View>
225231
</View>

0 commit comments

Comments
 (0)