Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit c762b3c

Browse files
committed
Fixed positioning issues with latest vector icons release
1 parent 269a7af commit c762b3c

File tree

5 files changed

+6
-19
lines changed

5 files changed

+6
-19
lines changed

lib/Avatar.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,11 @@ export default class Avatar extends Component {
3333
if (icon) {
3434
return (
3535
<View style={{ flex: 1 }}>
36-
<View style={{ width: size, height: size, borderRadius: size / 2, backgroundColor: getColor(backgroundColor), alignItems:'center' }}>
36+
<View style={{ width: size, height: size, borderRadius: size / 2, backgroundColor: getColor(backgroundColor), alignItems:'center', justifyContent: 'center' }}>
3737
<Icon
3838
name={icon}
3939
color={color}
4040
size={0.6 * size}
41-
style={{
42-
position: 'relative',
43-
top: -3
44-
}}
4541
/>
4642
</View>
4743
</View>

lib/Checkbox.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ export default class Checkbox extends Component {
107107
style={{
108108
opacity: OPACITY,
109109
margin: 16,
110-
position: 'relative',
111-
top: -10
112110
}}
113111
/>
114112
</Animated.View>
@@ -195,7 +193,6 @@ const styles = StyleSheet.create({
195193
label: {
196194
marginLeft: 16,
197195
opacity: COLOR.darkPrimaryOpacity.opacity,
198-
flex: 1,
199-
top: -5
196+
flex: 1
200197
}
201198
});

lib/Drawer/Item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const styles = {
5959
},
6060
icon: {
6161
position: 'relative',
62-
top: -7
62+
top: -2
6363
},
6464
value: {
6565
flex: 1,

lib/RadioButton.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ export default class RadioButton extends Component {
104104
color={CURR_COLOR}
105105
style={{
106106
opacity: OPACITY,
107-
margin: 16,
108-
position: 'relative',
109-
top: -10
107+
margin: 16
110108
}}
111109
/>
112110
<View style={styles.labelContainer}>
@@ -193,8 +191,6 @@ const styles = StyleSheet.create({
193191
label: {
194192
marginLeft: 16,
195193
opacity: COLOR.darkPrimaryOpacity.opacity,
196-
flex: 1,
197-
position: 'relative',
198-
top: -4
194+
flex: 1
199195
}
200196
});

lib/Toolbar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ const styles = {
112112
marginLeft: 16
113113
},
114114
icon: {
115-
margin: 16,
116-
position: 'relative',
117-
top: -5
115+
margin: 16
118116
}
119117
};

0 commit comments

Comments
 (0)