From 461a74115caf103b46d1ba93d3cba6fa7780d009 Mon Sep 17 00:00:00 2001 From: Diego Muracciole Date: Sat, 22 Oct 2016 19:28:37 -0300 Subject: [PATCH] Injected Host Component classes are not being considered by the reconciler (#8050) * Consider Host Component classes when creating a new internal instance * Remove unused tagToComponentClass & injectComponentClasses from ReactHostComponent --- .../shared/stack/reconciler/ReactHostComponent.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/renderers/shared/stack/reconciler/ReactHostComponent.js b/src/renderers/shared/stack/reconciler/ReactHostComponent.js index 7a08f562d7a29..eebe5cba460e3 100644 --- a/src/renderers/shared/stack/reconciler/ReactHostComponent.js +++ b/src/renderers/shared/stack/reconciler/ReactHostComponent.js @@ -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 = { @@ -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); - }, }; /**