Fix tests
This commit is contained in:
Родитель
21b4b5b352
Коммит
5225acea01
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* Copyright 2004-present Facebook. All Rights Reserved.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var PixelRatio = {
|
||||
startDetecting: function () {
|
||||
// noop for our implementation
|
||||
},
|
||||
|
||||
get: function() {
|
||||
return 2;
|
||||
},
|
||||
|
||||
getPixelSizeForLayoutSize: function (layoutSize) {
|
||||
return Math.round(layoutSize * PixelRatio.get());
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = PixelRatio;
|
Загрузка…
Ссылка в новой задаче