diff --git a/Libraries/Utilities/PixelRatio.js.flow b/Libraries/Utilities/PixelRatio.js.flow new file mode 100644 index 00000000000..b39952514b4 --- /dev/null +++ b/Libraries/Utilities/PixelRatio.js.flow @@ -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;