mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
PixelRatio
Summary: Changelog: [Internal] Flow typing PixelRatio Reviewed By: yungsters Differential Revision: D39588444 fbshipit-source-id: c1c358799e8012398b0b66f46bb58964a5d6c77f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1a28058ac3
commit
628db1fcd3
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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;
|
||||
Reference in New Issue
Block a user