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:
Andrey Lunyov
2018-10-19 15:45:17 +01:00
committed by Lorenzo Sciandra
parent f49f633d03
commit c02432293d
+1 -5
View File
@@ -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 : {},
},
});
});