fix: center icons in material tab bar. fixes #8248

This commit is contained in:
Satyajit Sahoo
2020-05-17 01:06:29 +02:00
parent 51f4d11fdf
commit 51b40879bd

View File

@@ -69,6 +69,7 @@ function MaterialBottomTabViewInner({
borderless: _1,
centered: _2,
rippleColor: _3,
style,
...rest
}) => {
return (
@@ -86,6 +87,7 @@ function MaterialBottomTabViewInner({
onPress?.(e);
}
}}
style={[styles.touchable, style]}
/>
);
}
@@ -153,4 +155,8 @@ const styles = StyleSheet.create({
icon: {
backgroundColor: 'transparent',
},
touchable: {
display: 'flex',
justifyContent: 'center',
},
});