Reputation: 1196
I have a problem only in the iPad mini 2 I am getting the tab bar of my app generated by react navigation (icon + label) in row instead of column. In the other devices iPhones and iPad Pro, Android, I get the icon and the label in column. Do you know any possible problem that could be causing this
Upvotes: 0
Views: 1711
Reputation: 89
The best solution is to specify the labelPosition in tab bar options tabBarOptions={{ labelPosition: "below-icon" }}>
Upvotes: 9
Reputation: 1196
I solved adding this in the tab bar navigation
createBottomTabBar({
tabBarOptions: {
...
tabStyle: {
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'space-around' },
}
})
Upvotes: 0