Open mjmasn opened 4 years ago
I have the same problem. Any news?
hey @mjmasn
While I can see that there is an offset in your screenshots I can't reproduce it on my side. I believe this is something to do with your views?
My screenshot is taken on IOS Simulator iPhone 11. The icon container is in black and the icon itself is white and I could not see any offsets.
@szholdiyarov there's 8px above the X and 10px below it in your image. It's clearer if you zoom in.
I have the same issues. Android is fine, its just iOS.
Android: perfectly centered
iOS: not centered
Same issue with Ionicons on ios only. Has anyone found a solution?
@zabojad
I fixed it by adding additional paddingTop
and paddingLeft
on iOS only
Environment
Description
With code like below, on Android the icon is perfectly centered in the View, whereas on iOS the icon is shifted a couple of px up from where it should be. We're mixing this with a custom icon font, so it's really obvious that certain icons are misaligned in a toolbar for example.
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
See above but let me know if you need a full reproduction repo.