From c02432293d3b3fe01ee0894b8e41dd5ca1d8ff53 Mon Sep 17 00:00:00 2001 From: Andrey Lunyov Date: Fri, 12 Oct 2018 11:31:32 -0700 Subject: [PATCH] Do not use fbjs/emptyObject Summary: Remove dependency on fbjs/emptyObject in React Native Reviewed By: yungsters Differential Revision: D10342631 fbshipit-source-id: 312bb545b66dd5b2132ca67bbaf91cc98a0c6c8a --- Libraries/Inspector/Inspector.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Libraries/Inspector/Inspector.js b/Libraries/Inspector/Inspector.js index a5ab122b0cd..d743518c43b 100644 --- a/Libraries/Inspector/Inspector.js +++ b/Libraries/Inspector/Inspector.js @@ -21,10 +21,6 @@ const Touchable = require('Touchable'); const UIManager = require('UIManager'); const View = require('View'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ -const emptyObject = require('fbjs/lib/emptyObject'); const invariant = require('fbjs/lib/invariant'); export type ReactRenderer = { @@ -131,7 +127,7 @@ class Inspector extends React.Component< hierarchy: [], inspected: { frame: {left, top, width, height}, - style: props ? props.style : emptyObject, + style: props ? props.style : {}, }, }); });