Files
react-native/Libraries/Utilities/PixelRatio.js.flow
T
Luna Wei 628db1fcd3 PixelRatio
Summary: Changelog: [Internal] Flow typing PixelRatio

Reviewed By: yungsters

Differential Revision: D39588444

fbshipit-source-id: c1c358799e8012398b0b66f46bb58964a5d6c77f
2022-09-28 11:47:44 -07:00

22 lines
514 B
Plaintext

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
'use strict';
declare class PixelRatio {
static get(): number;
static getFontScale(): number;
static getPixelSizeForLayoutSize(layoutSize: number): number;
static roundToNearestPixel(layoutSize: number): number;
static startDetecting(): void;
}
module.exports = PixelRatio;