decord/beta/source/utils/getDevicePixelRatio.native.tsx

21 lines
487 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 1898
// Function ID: 1899
2026-10-01 14:13:23 +00:00
// Name: react-native
// Dependencies: [17, 2]
// Exports: default
2026-10-12 16:32:48 +00:00
// Module 1898 (react-native)
2026-10-01 14:13:23 +00:00
import react_native from "react-native" /* 17 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
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;
};