-
Notifications
You must be signed in to change notification settings - Fork 12
Width dimension #5
Copy link
Copy link
Open
Description
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;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels