Skip to content

Commit 7541655

Browse files
alunyovfacebook-github-bot
authored andcommitted
Do not use fbjs/emptyObject
Summary: Remove dependency on fbjs/emptyObject in React Native Reviewed By: yungsters Differential Revision: D10342631 fbshipit-source-id: 312bb545b66dd5b2132ca67bbaf91cc98a0c6c8a
1 parent f1b4daf commit 7541655

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Libraries/Inspector/Inspector.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ const Touchable = require('Touchable');
2121
const UIManager = require('UIManager');
2222
const View = require('View');
2323

24-
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
25-
* found when Flow v0.54 was deployed. To see the error delete this comment and
26-
* run Flow. */
27-
const emptyObject = require('fbjs/lib/emptyObject');
2824
const invariant = require('fbjs/lib/invariant');
2925

3026
export type ReactRenderer = {
@@ -131,7 +127,7 @@ class Inspector extends React.Component<
131127
hierarchy: [],
132128
inspected: {
133129
frame: {left, top, width, height},
134-
style: props ? props.style : emptyObject,
130+
style: props ? props.style : {},
135131
},
136132
});
137133
});

0 commit comments

Comments
 (0)