You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[android] [ios] [web] measure returns incorrect values of View if its parent View is scaled using transform style #54988
If use measure method to calculate x, y, width, height, pageX, pageY values of View it will return incorrect values in case if parent View has styles:
transform: [{scale: 2,},],
in this case width, height, pageX, pageY values from measure callback will be doubled compared to real ones.
Specs
It is wrong due docs as transform style prop doesnt change layout, transform is used to change appearance only:
Transforms are style properties that will help you modify the appearance and position of your components using 2D or 3D transformations. However, once you apply transforms, the layouts remain the same around the transformed component
It is inconsistent with react-native-web where transform doesnt affect width, height, pageX, pageY values
It is inconsistent with response of onLayout callback which will return width, height NOT scaled
Problem
There are 3 different behaviors:
react-native-web returns real sizes
onLayout returns real sizes
measure returns size SCALED due to its parent transform style
changed the title [-]`measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/-][+][android][ios][web] `measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/+]on Feb 12, 2026
changed the title [-][android][ios][web] `measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/-][+][android] [ios] [web] `measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/+]on Feb 12, 2026
Activity
[-]`measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/-][+][android][ios][web] `measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/+][-][android][ios][web] `measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/-][+][android] [ios] [web] `measure` returns incorrect values of `View` if its parent `View` is `scale`d using `transform` style[/+]psnet commentedon May 2, 2026
ping
react-native-bot commentedon Oct 30, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
psnet commentedon Oct 30, 2026
this is still heavy bug