NativeMethodsMixin.measure()

static measure(callback)

Determines the location on screen, width, and height of the given view and returns the values via an async callback. If successful, the callback will be called with the following arguments:

  • x
  • y
  • width
  • height
  • pageX
  • pageY

Note that these measurements are not available until after the rendering has been completed in native. If you need the measurements as soon as possible, consider using the onLayout prop instead.

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

Please login to continue.