Skip to content

Commit

Permalink
Do not use fbjs/emptyObject
Browse files Browse the repository at this point in the history
Summary: Remove dependency on fbjs/emptyObject in React Native

Reviewed By: yungsters

Differential Revision: D10342631

fbshipit-source-id: 312bb545b66dd5b2132ca67bbaf91cc98a0c6c8a
  • Loading branch information
alunyov authored and facebook-github-bot committed Oct 12, 2018
1 parent f1b4daf commit 7541655
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Libraries/Inspector/Inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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 : {},
},
});
});
Expand Down

0 comments on commit 7541655

Please sign in to comment.