[react-native] Codemod .getNodeHandle, .getNativeNode to React.findNodeHandle

This commit is contained in:
Ben Alpert
2015-05-12 18:55:13 -07:00
committed by Christopher Chedeau
parent a2f73b4d77
commit a0440daf98
11 changed files with 33 additions and 29 deletions

View File

@@ -346,12 +346,12 @@ var ListView = React.createClass({
_measureAndUpdateScrollProps: function() {
RCTUIManager.measureLayout(
this.refs[SCROLLVIEW_REF].getInnerViewNode(),
this.refs[SCROLLVIEW_REF].getNodeHandle(),
React.findNodeHandle(this.refs[SCROLLVIEW_REF]),
logError,
this._setScrollContentHeight
);
RCTUIManager.measureLayoutRelativeToParent(
this.refs[SCROLLVIEW_REF].getNodeHandle(),
React.findNodeHandle(this.refs[SCROLLVIEW_REF]),
logError,
this._setScrollVisibleHeight
);