mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00:00
Fix tests
This commit is contained in:
parent
21b4b5b352
commit
5225acea01
20
Libraries/Utilities/__mocks__/PixelRatio.js
Normal file
20
Libraries/Utilities/__mocks__/PixelRatio.js
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user