mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Do not use fbjs/emptyObject
Summary: Remove dependency on fbjs/emptyObject in React Native Reviewed By: yungsters Differential Revision: D10342631 fbshipit-source-id: 312bb545b66dd5b2132ca67bbaf91cc98a0c6c8a
This commit is contained in:
committed by
Lorenzo Sciandra
parent
f49f633d03
commit
c02432293d
@@ -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 : {},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user