[ReactNative] Remove ReactNativeComponentMixin
This commit is contained in:
parent
e84e5710e4
commit
661321fda7
|
@ -12,7 +12,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var NativeMethodsMixin = require('NativeMethodsMixin');
|
var NativeMethodsMixin = require('NativeMethodsMixin');
|
||||||
var ReactNativeComponentMixin = require('ReactNativeComponentMixin');
|
|
||||||
var ReactNativeEventEmitter = require('ReactNativeEventEmitter');
|
var ReactNativeEventEmitter = require('ReactNativeEventEmitter');
|
||||||
var ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');
|
var ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');
|
||||||
var ReactNativeTagHandles = require('ReactNativeTagHandles');
|
var ReactNativeTagHandles = require('ReactNativeTagHandles');
|
||||||
|
@ -275,8 +274,7 @@ Object.assign(
|
||||||
ReactNativeBaseComponent.prototype,
|
ReactNativeBaseComponent.prototype,
|
||||||
ReactMultiChild.Mixin,
|
ReactMultiChild.Mixin,
|
||||||
ReactNativeBaseComponent.Mixin,
|
ReactNativeBaseComponent.Mixin,
|
||||||
NativeMethodsMixin,
|
NativeMethodsMixin
|
||||||
ReactNativeComponentMixin
|
|
||||||
);
|
);
|
||||||
|
|
||||||
module.exports = ReactNativeBaseComponent;
|
module.exports = ReactNativeBaseComponent;
|
||||||
|
|
|
@ -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;
|
|
|
@ -27,7 +27,6 @@ var ReactDefaultBatchingStrategy = require('ReactDefaultBatchingStrategy');
|
||||||
var ReactEmptyComponent = require('ReactEmptyComponent');
|
var ReactEmptyComponent = require('ReactEmptyComponent');
|
||||||
var ReactInstanceHandles = require('ReactInstanceHandles');
|
var ReactInstanceHandles = require('ReactInstanceHandles');
|
||||||
var ReactNativeComponentEnvironment = require('ReactNativeComponentEnvironment');
|
var ReactNativeComponentEnvironment = require('ReactNativeComponentEnvironment');
|
||||||
var ReactNativeComponentMixin = require('ReactNativeComponentMixin');
|
|
||||||
var ReactNativeGlobalInteractionHandler = require('ReactNativeGlobalInteractionHandler');
|
var ReactNativeGlobalInteractionHandler = require('ReactNativeGlobalInteractionHandler');
|
||||||
var ReactNativeGlobalResponderHandler = require('ReactNativeGlobalResponderHandler');
|
var ReactNativeGlobalResponderHandler = require('ReactNativeGlobalResponderHandler');
|
||||||
var ReactNativeMount = require('ReactNativeMount');
|
var ReactNativeMount = require('ReactNativeMount');
|
||||||
|
@ -90,8 +89,6 @@ function inject() {
|
||||||
|
|
||||||
EventPluginUtils.injection.injectMount(ReactNativeMount);
|
EventPluginUtils.injection.injectMount(ReactNativeMount);
|
||||||
|
|
||||||
ReactClass.injection.injectMixin(ReactNativeComponentMixin);
|
|
||||||
|
|
||||||
ReactNativeComponent.injection.injectTextComponentClass(
|
ReactNativeComponent.injection.injectTextComponentClass(
|
||||||
ReactNativeTextComponent
|
ReactNativeTextComponent
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue