Skip to content

[docs] Document measure() #3155

Description

@corbt

I'm trying to get the calculated width/height of a view using the syntax found in #953, using RN 0.11 on Android. Is this implemented?

I have a component with a <View ref="test">...</View> and the following componentDidMount() block:

  componentDidMount() {
    this.refs.test.measure((ox, oy, width, height, px, py) => {
      console.log("measured", ox, oy, width, height, px, py);
    });
  }

Which does successfully call the callback inside measure, but only prints

measured undefined undefined undefined undefined undefined undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions