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
Diego Muracciole committed
Oct 22, 2016 at 19:28 UTC
461a74115caf103b46d1ba93d3cba6fa7780d009
1 file changed
-7
src/renderers/shared/stack/reconciler/ReactHostComponent.js
-7
@@ -14,8 +14,6 @@
14
var invariant = require('invariant');
15
16
var genericComponentClass = null;
17
-// This registry keeps track of wrapper classes around host tags.
18
-var tagToComponentClass = {};
17
var textComponentClass = null;
18
19
var ReactHostComponentInjection = {
@@ -29,11 +27,6 @@ var ReactHostComponentInjection = {
27
injectTextComponentClass: function(componentClass) {
28
textComponentClass = componentClass;
29
},
32
- // This accepts a keyed object with classes as values. Each key represents a
33
- // tag. That particular tag will use this class instead of the generic one.
34
- injectComponentClasses: function(componentClasses) {
35
- Object.assign(tagToComponentClass, componentClasses);
36
- },
30
};
31
32
/**