2015-02-20 04:10:52 +00:00
|
|
|
/**
|
2015-03-23 20:35:08 +00:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
2015-02-20 04:10:52 +00:00
|
|
|
*
|
2015-05-08 16:45:43 +00:00
|
|
|
* @providesModule ReactNativeComponentMixin
|
2015-03-26 00:49:46 +00:00
|
|
|
* @flow
|
2015-02-20 04:10:52 +00:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2015-05-13 01:23:33 +00:00
|
|
|
var findNodeHandle = require('findNodeHandle');
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-05-08 16:45:43 +00:00
|
|
|
var ReactNativeComponentMixin = {
|
2015-02-20 04:10:52 +00:00
|
|
|
/**
|
2015-05-13 01:55:13 +00:00
|
|
|
* This method is deprecated; use `React.findNodeHandle` instead.
|
2015-02-20 04:10:52 +00:00
|
|
|
*/
|
|
|
|
getNativeNode: function() {
|
2015-05-13 01:23:33 +00:00
|
|
|
return findNodeHandle(this);
|
2015-02-20 04:10:52 +00:00
|
|
|
},
|
|
|
|
|
2015-05-13 01:55:13 +00:00
|
|
|
/**
|
|
|
|
* This method is deprecated; use `React.findNodeHandle` instead.
|
|
|
|
*/
|
2015-02-20 04:10:52 +00:00
|
|
|
getNodeHandle: function() {
|
2015-05-13 01:23:33 +00:00
|
|
|
return findNodeHandle(this);
|
2015-02-20 04:10:52 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2015-05-08 16:45:43 +00:00
|
|
|
module.exports = ReactNativeComponentMixin;
|