[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

@@ -15,15 +15,15 @@ var findNodeHandle = require('findNodeHandle');
var ReactNativeComponentMixin = {
/**
* This has no particular meaning in ReactNative. If this were in the DOM, this
* would return the DOM node. There should be nothing that invokes this
* method. Any current callers of this are mistaken - they should be invoking
* `getNodeHandle`.
* This method is deprecated; use `React.findNodeHandle` instead.
*/
getNativeNode: function() {
return findNodeHandle(this);
},
/**
* This method is deprecated; use `React.findNodeHandle` instead.
*/
getNodeHandle: function() {
return findNodeHandle(this);
}