Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Width dimension #5

Open
VitaliyGaliy opened this issue Apr 9, 2020 · 5 comments
Open

Width dimension #5

VitaliyGaliy opened this issue Apr 9, 2020 · 5 comments

Comments

@VitaliyGaliy
Copy link

Could you explain why you have ' - 2 ' in the end in android width size?

const newSize = based === 'height' ? size * hscale : size * wscale;
if (Platform.OS === 'ios') {
return Math.round(PixelRatio.roundToNearestPixel(newSize));
} else {
return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
}

@DeniferSantiago
Copy link

waiting for an answer for this...

@chefk5
Copy link

chefk5 commented Oct 14, 2021

Same

@vijay14887
Copy link

Same here.....

@guhcostan-tw
Copy link

waiting for an answer for this...

@kuldip-simform
Copy link

Waiting for an answer to this.........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants