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.
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 followingcomponentDidMount()block:Which does successfully call the callback inside
measure, but only printsmeasured undefined undefined undefined undefined undefined undefined.