This commit is contained in:
Spencer Ahrens 2015-04-24 12:15:11 -07:00
Родитель 21b4b5b352
Коммит 5225acea01
1 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -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;