Expo Docs

Hey friend! We are co-hosting a conference with Software Mansion, learn more.

Image Style Props


Reference

TypeRequired
numberNo

TypeRequired
enum('visible', 'hidden')No

TypeRequired
numberNo

TypeRequired
numberNo

TypeRequired
colorNo

TypeRequired
numberNo

TypeRequired
numberNo

TypeRequired
colorNo

TypeRequired
numberNo

TypeRequired
numberNo

TypeRequired
enum('visible', 'hidden')No

TypeRequired
Object.keys(ImageResizeMode)No

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

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 http://frescolib.org/rounded-corners-and-circles.md
TypeRequiredPlatform
stringNoAndroid