Like measure(), but measures the view relative to an ancestor, specified as relativeToNativeNode. This means that the returned x, y are relative to the origin x, y of the ancestor view.
-
As always, to obtain a native node handle for a component, you can use findNodeHandle(component).
Like measure(), but measures the view relative to an ancestor, specified with relativeToNativeComponentRef refrence. This means that the returned coordinates are relative to the origin x, y of the ancestor view.
+
+
Note: This method can also be called with a relativeToNativeNode handler (instead of reference), but this variant is deprecated.