Skip to content

Commit

Permalink
Injected Host Component classes are not being considered by the recon…
Browse files Browse the repository at this point in the history
…ciler (facebook#8050)

* Consider Host Component classes when creating a new internal instance

* Remove unused tagToComponentClass & injectComponentClasses from ReactHostComponent
  • Loading branch information
diegomura authored and acusti committed Mar 15, 2017
1 parent 2892e5b commit 00f1de8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/renderers/shared/stack/reconciler/ReactHostComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
var invariant = require('invariant');

var genericComponentClass = null;
// This registry keeps track of wrapper classes around host tags.
var tagToComponentClass = {};
var textComponentClass = null;

var ReactHostComponentInjection = {
Expand All @@ -29,11 +27,6 @@ var ReactHostComponentInjection = {
injectTextComponentClass: function(componentClass) {
textComponentClass = componentClass;
},
// This accepts a keyed object with classes as values. Each key represents a
// tag. That particular tag will use this class instead of the generic one.
injectComponentClasses: function(componentClasses) {
Object.assign(tagToComponentClass, componentClasses);
},
};

/**
Expand Down

0 comments on commit 00f1de8

Please sign in to comment.