The image used for bottomTabs appears smaller on Android than on iOS, iOS is displaying the ideal size of the image but on Android, it is way too small. How do I make the Android version look like the iOS version? see images below.


{
stack: {
children: [{ component: { name: "Friends" } }],
options: {
bottomTab: {
icon: require("./assets/img/friends-tab-icon.png"),
iconColor: "#878787",
selectedIconColor: "#00C040"
}
}
}
},
{ // The problematic icon
stack: {
children: [{ component: { name: "Map" } }],
options: {
bottomTab: {
icon: require("./assets/img/lens-tab-icon.png"),
}
}
}
},
{
stack: {
children: [{ component: { name: "Notifications" } }],
options: {
bottomTab: {
icon: require("./assets/img/notification-tab-icon.png"),
iconColor: "#878787",
selectedIconColor: "#00C040"
}
}
}
}
We are having the same problem. Icon size in iOS is fine but Android always small. Even tried following the documentation and adding the icons natively, but didn't work.
Did you find a workaround @dayaki ?
@peresbri no workaround so far, just using it like that for now. You?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue has been closed for inactivity.
Why it is closed ? Have any one find any solution? . It would be appreciated
Why it is closed ?. Any on find any solution ? It would be appreciated .
+1 on this issue also. Should not be closed.
The icon on the far right below is perfectly sized on iOS (an image of 30x30 pixels). However, this is how it looks on Android.

Please use 1x 2x 3 x images for handling this
@ParshantArora I tried doing that but still having same issue
Just hide the tabs view( not remove) and create your custom tabbar component and use that .
@ParshantArora
icon: {
uri: 'home_icon_bottom',
scale: 0.1 // I have tried 1 and 3 too but still getting same size
},
Still getting this

@umkhan65 scale: 0.1 is for ios only . Either use Custom tabs or use the following code
This piece controls opening my custom circle button component
Navigation.showOverlay({
component: {
name: 'common.AddIcon',
passProps: {},
options: {
statusBar: {},
overlay: {
interceptTouchOutside: false,
},
},
},
});
And the circle component:
...
const StyledAddButtonContainer = styled(View)`
position: absolute;
justify-content: center;
align-items: center;
left: ${screenWidth / 2 - 35};
bottom: ${getBottomSpace() ? 30 : 0};
width: 70;
height: 70;
margin: auto;
;
const AddIconContainer = styled(Animated.View)
background-color: 'purple';
border-radius: 50;
height: 70;
width: 70;
border-color: 'black';
border-width: 6;
justify-content: center;
align-items: center;
`;
...
render () {
return (
console.log('my thing')
}}>
transform: [{ rotate }],
}}>
size={32}
name="plus"
color={GRAY_SCALE.WHITE}
/>
)
}
@dayaki i am facing exactly same problem, did find any workaround ? Or anyone?
React Native Navigation version: 4.0.4
React Native version: 0.61.5
@barbarossusuz my issue was really stupid. I cropped the empty space in my png to the exact size of icon. It solved my issue
Did this ever get fixed as it's still occurring now. @guyca has this been reported before? Still happening in V6