1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10export type ImageResizeMode =
11  | 'cover'
12  | 'contain'
13  | 'stretch'
14  | 'repeat'
15  | 'center';
16
17/**
18 * @see ImageResizeMode.js
19 */
20export interface ImageResizeModeStatic {
21  /**
22   * contain - The image will be resized such that it will be completely
23   * visible, contained within the frame of the View.
24   */
25  contain: ImageResizeMode;
26  /**
27   * cover - The image will be resized such that the entire area of the view
28   * is covered by the image, potentially clipping parts of the image.
29   */
30  cover: ImageResizeMode;
31  /**
32   * stretch - The image will be stretched to fill the entire frame of the
33   * view without clipping.  This may change the aspect ratio of the image,
34   * distoring it.  Only supported on iOS.
35   */
36  stretch: ImageResizeMode;
37  /**
38   * center - The image will be scaled down such that it is completely visible,
39   * if bigger than the area of the view.
40   * The image will not be scaled up.
41   */
42  center: ImageResizeMode;
43
44  /**
45   * repeat - The image will be repeated to cover the frame of the View. The
46   * image will keep it's size and aspect ratio.
47   */
48  repeat: ImageResizeMode;
49}
50