20 lines
487 B
TypeScript
20 lines
487 B
TypeScript
// Module ID: 1886
|
|
// Function ID: 1887
|
|
// Name: react-native
|
|
// Dependencies: [17, 2]
|
|
// Exports: default
|
|
|
|
// Module 1886 (react-native)
|
|
import react_native from "react-native" /* 17 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const PixelRatio = react_native.PixelRatio;
|
|
const result = size.fileFinishedImporting("utils/getDevicePixelRatio.native.tsx");
|
|
|
|
export default function getDevicePixelRatio() {
|
|
let num = PixelRatio.get();
|
|
if (num == null) {
|
|
num = 1;
|
|
}
|
|
return num;
|
|
};
|