mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[react-native] Codemod .getNodeHandle, .getNativeNode to React.findNodeHandle
This commit is contained in:
committed by
Christopher Chedeau
parent
a2f73b4d77
commit
a0440daf98
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user