MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / toDevicePixels

Function toDevicePixels

packages/core/utils/layout-helper/index.ios.ts:43–45  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

41 }
42
43 export function toDevicePixels(value: number): number {
44 return value * iosUtils.getMainScreen().scale;
45 }
46
47 export function toDeviceIndependentPixels(value: number): number {
48 return value / iosUtils.getMainScreen().scale;

Callers 1

measureNativeViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected