mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-21 07:42:24 +08:00
fix: center icons in material tab bar. fixes #8248
This commit is contained in:
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user