mirror of
https://github.com/status-im/react-native.git
synced 2025-01-25 00:39:03 +00:00
27 lines
492 B
JavaScript
27 lines
492 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule insetsDiffer
|
|
*/
|
|
'use strict';
|
|
|
|
var dummyInsets = {
|
|
top: undefined,
|
|
left: undefined,
|
|
right: undefined,
|
|
bottom: undefined,
|
|
};
|
|
|
|
var insetsDiffer = function(one, two) {
|
|
one = one || dummyInsets;
|
|
two = two || dummyInsets;
|
|
return one !== two && (
|
|
one.top !== two.top ||
|
|
one.left !== two.left ||
|
|
one.right !== two.right ||
|
|
one.bottom !== two.bottom
|
|
);
|
|
};
|
|
|
|
module.exports = insetsDiffer;
|