UNPKG

react-native

Version:

A framework for building native apps using React

23 lines (21 loc) 785 B
/** * 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. * * @generated SignedSource<<67cf9fdaae08523831790e715ab4c6c3>> * * This file was translated from Flow by scripts/build-types/index.js. * Original file: packages/react-native/Libraries/StyleSheet/Rect.js */ export type Rect = Readonly<{ bottom?: number | undefined; left?: number | undefined; right?: number | undefined; top?: number | undefined; }>; export type Insets = Rect; export type RectOrSize = Rect | number; export declare function createSquare(size: number): Rect; export declare function normalizeRect(rectOrSize: null | undefined | RectOrSize): null | undefined | Rect;