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 (#8050)

* Consider Host Component classes when creating a new internal instance

* Remove unused tagToComponentClass & injectComponentClasses from ReactHostComponent

(cherry picked from commit 461a741)
  • Loading branch information
diegomura authored and gaearon committed Jan 6, 2017
1 parent ed760d1 commit 278409d
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 278409d

Please sign in to comment.