tabBarOptions={{
scrollEnabled: true,
style: {
backgroundColor: 'transparent',
},
tabStyle: {
width: 'auto',
margin: theme.sizes.radius,
padding: 0, //only horizontal works,how to modify vertical padding ?
backgroundColor: 'yellow',
},
labelStyle: {
margin: 0,
backgroundColor: 'red',
},
activeTintColor: theme.colors.default,
renderIndicator: () => null,
}}
Asked
Active
Viewed 133 times
0

伊豆湖卧烟
- 93
- 4
-
tabStyle: {minHeight: null} works – 伊豆湖卧烟 Oct 21 '20 at 03:41
1 Answers
0
Try just style under tabBarOptions
tabBarOptions={{
labelStyle: { fontSize: 12 },
tabStyle: { width: 100, height: 100 },
style: { backgroundColor: 'powderblue' },
}}
Detail here tabnavigator-extra-padding

Nooruddin Lakhani
- 7,507
- 2
- 19
- 39
-
Thank you, but I found the solution, source code has minHeight:48,so only set tabStyle: {minHeight: null} works. – 伊豆湖卧烟 Oct 21 '20 at 03:40