Closed
Description
I have something similar to this:
handleSomething: function() {
this._root.measure((ox, oy, width, height, px, py) => {
console.log({ox, oy, width, height, px, py});
});
},
render: function() {
return (<View ref={component => this._root = component}>...</View>);
}
This code works flawlessly on iOS, but on android the measure callback will always be called with undefined
arguments – unless I put an empty callback on the onLayout
property.