diff --git a/src/renderers/shared/stack/reconciler/instantiateReactComponent.js b/src/renderers/shared/stack/reconciler/instantiateReactComponent.js index d1b5c23262c6a..bc5b1eeec0bbf 100644 --- a/src/renderers/shared/stack/reconciler/instantiateReactComponent.js +++ b/src/renderers/shared/stack/reconciler/instantiateReactComponent.js @@ -23,13 +23,6 @@ var warning = require('warning'); var ReactCompositeComponentWrapper = function(element) { this.construct(element); }; -Object.assign( - ReactCompositeComponentWrapper.prototype, - ReactCompositeComponent, - { - _instantiateReactComponent: instantiateReactComponent, - } -); function getDeclarationErrorAddendum(owner) { if (owner) { @@ -157,4 +150,12 @@ function instantiateReactComponent(node, shouldHaveDebugID) { return instance; } +Object.assign( + ReactCompositeComponentWrapper.prototype, + ReactCompositeComponent, + { + _instantiateReactComponent: instantiateReactComponent, + } +); + module.exports = instantiateReactComponent;