NativeMethodsMixin.measureInWindow()

static measureInWindow(callback)

Determines the location of the given view in the window and returns the values via an async callback. If the React root view is embedded in another native view, this will give you the absolute coordinates. If successful, the callback will be called with the following arguments:

  • x
  • y
  • width
  • height

Note that these measurements are not available until after the rendering has been completed in native.

doc_React_Native
2016-06-23 04:24:36
Comments
Leave a Comment

Please login to continue.