diff --git a/docs/next/image-style-props.html b/docs/next/image-style-props.html index a9c096d8b3a..00b04f244d8 100644 --- a/docs/next/image-style-props.html +++ b/docs/next/image-style-props.html @@ -1,4 +1,4 @@ -Image Style Props · React Native
Edit

Image Style Props

Examples

+
Edit

Image Style Props

Examples

+

Image Resize Mode

+

Image Border

+
+
    + + +
+
+

+

+

+

Image Border Radius

-
-
    - - -
-
-

-

-

+

Image Tint

Reference

Props

-

borderTopRightRadius

- - - - - - - -
TypeRequired
numberNo
-

backfaceVisibility

+

The property defines whether or not the back face of a rotated image should be visible.

- + - - -
TypeRequired
TypeDefault
enum('visible', 'hidden')No
-
-

borderBottomLeftRadius

- - - - - - - -
TypeRequired
numberNo
-
-

borderBottomRightRadius

- - - - - - - -
TypeRequired
numberNo
-
-

borderColor

- - - - - - - -
TypeRequired
colorNo
-
-

borderRadius

- - - - - - - -
TypeRequired
numberNo
-
-

borderTopLeftRadius

- - - - - - +
TypeRequired
numberNo
enum('visible', 'hidden')'visible'

backgroundColor

- + - + + +
TypeRequired
Type
colorNo
color
+
+

borderBottomLeftRadius

+ + + + + + + +
Type
number
+
+

borderBottomRightRadius

+ + + + + + + +
Type
number
+
+

borderColor

+ + + + + + + +
Type
color
+
+

borderRadius

+ + + + + + + +
Type
number
+
+

borderTopLeftRadius

+ + + + + + + +
Type
number
+
+

borderTopRightRadius

+ + + + + +
Type
number

borderWidth

- + - +
TypeRequired
Type
numberNo
number

opacity

+

Set an opacity value for the image. The number should be in the range from 0.0 to 1.0.

- + - +
TypeRequired
TypeDefault
numberNo
number1.0

overflow

- + - + + +
TypeRequired
TypeDefault
enum('visible', 'hidden')No
enum('visible', 'hidden')'visible'
+
+

overlayColor
Android

+

When the image has rounded corners, specifying an overlayColor will cause the remaining space in the corners to be filled with a solid color. This is useful in cases which are not supported by the Android implementation of rounded corners:

+
    +
  • Certain resize modes, such as 'contain'
  • +
  • Animated GIFs
  • +
+

A typical way to use this prop is with images displayed on a solid background and setting the overlayColor to the same color as the background.

+

For details of how this works under the hood, see Fresco documentation.

+ + + + + +
Type
string

resizeMode

- + - +
TypeRequired
TypeDefault
enum('cover', 'contain', 'stretch', 'repeat', 'center')No
enum('cover', 'contain', 'stretch', 'repeat', 'center')'cover'

@@ -791,30 +812,13 @@ export default DisplayAnImageWithStyle;

Changes the color of all the non-transparent pixels to the tintColor.

- + - +
TypeRequired
Type
colorNo
color
-
-

overlayColor

-

When the image has rounded corners, specifying an overlayColor will cause the remaining space in the corners to be filled with a solid color. This is useful in cases which are not supported by the Android implementation of rounded corners:

-
    -
  • Certain resize modes, such as 'contain'
  • -
  • Animated GIFs
  • -
-

A typical way to use this prop is with images displayed on a solid background and setting the overlayColor to the same color as the background.

-

For details of how this works under the hood, see https://frescolib.org/docs/rounded-corners-and-circles.html

- - - - - - - -
TypeRequiredPlatform
stringNoAndroid
-
Edit

Image Style Props

Examples

+
Edit

Image Style Props

Examples

+

Image Resize Mode

+

Image Border

+
+
    + + +
+
+

+

+

+

Image Border Radius

-
-
    - - -
-
-

-

-

+

Image Tint

Reference

Props

-

borderTopRightRadius

- - - - - - - -
TypeRequired
numberNo
-

backfaceVisibility

+

The property defines whether or not the back face of a rotated image should be visible.

- + - - -
TypeRequired
TypeDefault
enum('visible', 'hidden')No
-
-

borderBottomLeftRadius

- - - - - - - -
TypeRequired
numberNo
-
-

borderBottomRightRadius

- - - - - - - -
TypeRequired
numberNo
-
-

borderColor

- - - - - - - -
TypeRequired
colorNo
-
-

borderRadius

- - - - - - - -
TypeRequired
numberNo
-
-

borderTopLeftRadius

- - - - - - +
TypeRequired
numberNo
enum('visible', 'hidden')'visible'

backgroundColor

- + - + + +
TypeRequired
Type
colorNo
color
+
+

borderBottomLeftRadius

+ + + + + + + +
Type
number
+
+

borderBottomRightRadius

+ + + + + + + +
Type
number
+
+

borderColor

+ + + + + + + +
Type
color
+
+

borderRadius

+ + + + + + + +
Type
number
+
+

borderTopLeftRadius

+ + + + + + + +
Type
number
+
+

borderTopRightRadius

+ + + + + +
Type
number

borderWidth

- + - +
TypeRequired
Type
numberNo
number

opacity

+

Set an opacity value for the image. The number should be in the range from 0.0 to 1.0.

- + - +
TypeRequired
TypeDefault
numberNo
number1.0

overflow

- + - + + +
TypeRequired
TypeDefault
enum('visible', 'hidden')No
enum('visible', 'hidden')'visible'
+
+

overlayColor
Android

+

When the image has rounded corners, specifying an overlayColor will cause the remaining space in the corners to be filled with a solid color. This is useful in cases which are not supported by the Android implementation of rounded corners:

+
    +
  • Certain resize modes, such as 'contain'
  • +
  • Animated GIFs
  • +
+

A typical way to use this prop is with images displayed on a solid background and setting the overlayColor to the same color as the background.

+

For details of how this works under the hood, see Fresco documentation.

+ + + + + +
Type
string

resizeMode

- + - +
TypeRequired
TypeDefault
enum('cover', 'contain', 'stretch', 'repeat', 'center')No
enum('cover', 'contain', 'stretch', 'repeat', 'center')'cover'

@@ -791,30 +812,13 @@ export default DisplayAnImageWithStyle;

Changes the color of all the non-transparent pixels to the tintColor.

- + - +
TypeRequired
Type
colorNo
color
-
-

overlayColor

-

When the image has rounded corners, specifying an overlayColor will cause the remaining space in the corners to be filled with a solid color. This is useful in cases which are not supported by the Android implementation of rounded corners:

-
    -
  • Certain resize modes, such as 'contain'
  • -
  • Animated GIFs
  • -
-

A typical way to use this prop is with images displayed on a solid background and setting the overlayColor to the same color as the background.

-

For details of how this works under the hood, see https://frescolib.org/docs/rounded-corners-and-circles.html

- - - - - - - -
TypeRequiredPlatform
stringNoAndroid
-