From e7e91f564fa2afcc23e456b305436bfb5972d561 Mon Sep 17 00:00:00 2001 From: Peter Ruibal Date: Sat, 1 Jul 2017 09:45:05 -0700 Subject: [PATCH] Comment out warnValidStyle for fiber development This function looks at react-stack internals which to not work on react-fiber. Comment it out. --- src/vendor/setValueForStyles/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vendor/setValueForStyles/index.js b/src/vendor/setValueForStyles/index.js index c511ebfef5..13cdbaa3cd 100644 --- a/src/vendor/setValueForStyles/index.js +++ b/src/vendor/setValueForStyles/index.js @@ -110,6 +110,7 @@ if (process.env.NODE_ENV !== 'production') { */ var warnValidStyle = function(name, value, component) { var owner; + /* if (component) { owner = component._currentElement._owner; } @@ -124,6 +125,7 @@ if (process.env.NODE_ENV !== 'production') { if (typeof value === 'number' && isNaN(value)) { warnStyleValueIsNaN(name, value, owner); } + */ }; }