Examplesβ
Image Resize Modeβ
- Function Component
- Class Component
Image Borderβ
- Function Component
- Class Component
Image Border Radiusβ
- Function Component
- Class Component
Image Tintβ
- Function Component
- Class Component
Reference
backfaceVisibility
β
The property defines whether or not the back face of a rotated image should be visible.
Type | Default |
---|
enum('visible' , 'hidden' ) | 'visible' |
backgroundColor
β
borderBottomLeftRadius
β
borderBottomRightRadius
β
borderColor
β
borderRadius
β
borderTopLeftRadius
β
borderTopRightRadius
β
borderWidth
β
opacity
β
Set an opacity value for the image. The number should be in the range from 0.0
to 1.0
.
overflow
β
Type | Default |
---|
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.
resizeMode
β
Type | Default |
---|
enum('cover' , 'contain' , 'stretch' , 'repeat' , 'center' ) | 'cover' |
tintColor
β
Changes the color of all the non-transparent pixels to the tintColor.