mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[ReactNative] Fix warnings w/h => width/height
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var dummySize = {w: undefined, h: undefined};
|
||||
var dummySize = {width: undefined, height: undefined};
|
||||
|
||||
var sizesDiffer = function(one, two) {
|
||||
one = one || dummySize;
|
||||
two = two || dummySize;
|
||||
return one !== two && (
|
||||
one.w !== two.w ||
|
||||
one.h !== two.h
|
||||
one.width !== two.width ||
|
||||
one.height !== two.height
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user