[ReactNative] Remove ReactNativeComponentMixin

This commit is contained in:
Martin Konicek 2015-05-14 08:13:37 -07:00
parent e84e5710e4
commit 661321fda7
3 changed files with 1 additions and 38 deletions

View File

@ -12,7 +12,6 @@
'use strict';
var NativeMethodsMixin = require('NativeMethodsMixin');
var ReactNativeComponentMixin = require('ReactNativeComponentMixin');
var ReactNativeEventEmitter = require('ReactNativeEventEmitter');
var ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');
var ReactNativeTagHandles = require('ReactNativeTagHandles');
@ -275,8 +274,7 @@ Object.assign(
ReactNativeBaseComponent.prototype,
ReactMultiChild.Mixin,
ReactNativeBaseComponent.Mixin,
NativeMethodsMixin,
ReactNativeComponentMixin
NativeMethodsMixin
);
module.exports = ReactNativeBaseComponent;

View File

@ -1,32 +0,0 @@
/**
* 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.
*
* @providesModule ReactNativeComponentMixin
* @flow
*/
'use strict';
var findNodeHandle = require('findNodeHandle');
var ReactNativeComponentMixin = {
/**
* 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);
}
};
module.exports = ReactNativeComponentMixin;

View File

@ -27,7 +27,6 @@ var ReactDefaultBatchingStrategy = require('ReactDefaultBatchingStrategy');
var ReactEmptyComponent = require('ReactEmptyComponent');
var ReactInstanceHandles = require('ReactInstanceHandles');
var ReactNativeComponentEnvironment = require('ReactNativeComponentEnvironment');
var ReactNativeComponentMixin = require('ReactNativeComponentMixin');
var ReactNativeGlobalInteractionHandler = require('ReactNativeGlobalInteractionHandler');
var ReactNativeGlobalResponderHandler = require('ReactNativeGlobalResponderHandler');
var ReactNativeMount = require('ReactNativeMount');
@ -90,8 +89,6 @@ function inject() {
EventPluginUtils.injection.injectMount(ReactNativeMount);
ReactClass.injection.injectMixin(ReactNativeComponentMixin);
ReactNativeComponent.injection.injectTextComponentClass(
ReactNativeTextComponent
);