mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
628db1fcd3
Summary: Changelog: [Internal] Flow typing PixelRatio Reviewed By: yungsters Differential Revision: D39588444 fbshipit-source-id: c1c358799e8012398b0b66f46bb58964a5d6c77f
22 lines
514 B
Plaintext
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;
|