diff --git a/docs/image-style-props.md b/docs/image-style-props.md
index 9427d553ba5..292dafab4b1 100644
--- a/docs/image-style-props.md
+++ b/docs/image-style-props.md
@@ -3,7 +3,9 @@ id: image-style-props
title: Image Style Props
---
-### Examples
+## Examples
+
+### Image Resize Mode
@@ -18,7 +20,7 @@ title: Image Style Props
-```SnackPlayer name=Image%20Style%20Props%20Function%20Component%20Example
+```SnackPlayer name=Image%20Resize%20Modes%20Function%20Component%20Example
import React from "react";
import { View, Image, Text, StyleSheet } from "react-native";
@@ -100,7 +102,7 @@ export default DisplayAnImageWithStyle;
-```SnackPlayer name=Image%20Style%20Props%20Class%20Component%20Example
+```SnackPlayer name=Image%20Resize%20Modes%20Class%20Component%20Example
import React, { Component } from "react";
import { View, Image, StyleSheet, Text } from "react-native";
@@ -184,6 +186,99 @@ export default DisplayAnImageWithStyle;
+### Image Border
+
+
+
+ -
+ Function Component Example
+
+ -
+ Class Component Example
+
+
+
+
+
+
+```SnackPlayer name=Style%20BorderWidth%20and%20BorderColor%20Function%20Component%20Example
+import React from "react";
+import { View, Image, StyleSheet, Text } from "react-native";
+
+const DisplayAnImageWithStyle = () => {
+ return (
+
+
+ borderColor & borderWidth
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: {
+ display: "flex",
+ flexDirection: "vertical",
+ justifyContent: "center",
+ alignItems: "center",
+ height: "100%",
+ textAlign: "center"
+ }
+});
+
+export default DisplayAnImageWithStyle;
+```
+
+
+
+```SnackPlayer name=Style%20BorderWidth%20and%20BorderColor%20Class%20Component%20Example
+import React, { Component } from "react";
+import { View, Image, StyleSheet, Text } from "react-native";
+
+class DisplayAnImageWithStyle extends Component {
+ render() {
+ return (
+
+
+ borderColor & borderWidth
+
+ );
+ }
+}
+
+const styles = StyleSheet.create({
+ container: {
+ display: "flex",
+ flexDirection: "vertical",
+ justifyContent: "center",
+ alignItems: "center",
+ height: "100%",
+ textAlign: "center"
+ }
+});
+
+export default DisplayAnImageWithStyle;
+```
+
+
+
+### Image Border Radius
+
-
@@ -341,96 +436,7 @@ export default DisplayAnImageWithStyle;
-
-
- -
- Function Component Example
-
- -
- Class Component Example
-
-
-
-
-
-
-```SnackPlayer name=Style%20BorderWidth%20and%20BorderColor%20Function%20Component%20Example
-import React from "react";
-import { View, Image, StyleSheet, Text } from "react-native";
-
-const DisplayAnImageWithStyle = () => {
- return (
-
-
-
- borderColor & borderWidth
-
-
- );
-}
-
-const styles = StyleSheet.create({
- container: {
- display: "flex",
- flexDirection: "vertical",
- justifyContent: "center",
- alignItems: "center",
- height: "100%",
- textAlign: "center"
- }
-});
-
-export default DisplayAnImageWithStyle;
-```
-
-
-
-```SnackPlayer name=Style%20BorderWidth%20and%20BorderColor%20Class%20Component%20Example
-import React, { Component } from "react";
-import { View, Image, StyleSheet, Text } from "react-native";
-
-class DisplayAnImageWithStyle extends Component {
- render() {
- return (
-
-
- borderColor & borderWidth
-
- );
- }
-}
-
-const styles = StyleSheet.create({
- container: {
- display: "flex",
- flexDirection: "vertical",
- justifyContent: "center",
- alignItems: "center",
- height: "100%",
- textAlign: "center"
- }
-});
-
-export default DisplayAnImageWithStyle;
-```
-
-
+### Image Tint
@@ -470,7 +476,7 @@ const styles = StyleSheet.create({
container: {
display: "flex",
flexDirection: "vertical",
- justifyContent: "space-around",
+ justifyContent: "center",
alignItems: "center",
height: "100%",
textAlign: "center"
@@ -509,7 +515,7 @@ const styles = StyleSheet.create({
container: {
display: "flex",
flexDirection: "vertical",
- justifyContent: "space-around",
+ justifyContent: "center",
alignItems: "center",
height: "100%",
textAlign: "center"
@@ -525,123 +531,127 @@ export default DisplayAnImageWithStyle;
## Props
-### `borderTopRightRadius`
+### `backfaceVisibility`
+
+The property defines whether or not the back face of a rotated image should be visible.
-| Type | Required |
-| ------ | -------- |
-| number | No |
+| Type | Default |
+| ----------------------------- | ----------- |
+| enum(`'visible'`, `'hidden'`) | `'visible'` |
---
-### `backfaceVisibility`
+### `backgroundColor`
-| Type | Required |
-| ------------------------- | -------- |
-| enum('visible', 'hidden') | No |
+| Type |
+| ------------------ |
+| [color](colors.md) |
---
### `borderBottomLeftRadius`
-| Type | Required |
-| ------ | -------- |
-| number | No |
+| Type |
+| ------ |
+| number |
---
### `borderBottomRightRadius`
-| Type | Required |
-| ------ | -------- |
-| number | No |
+| Type |
+| ------ |
+| number |
---
### `borderColor`
-| Type | Required |
-| ------------------ | -------- |
-| [color](colors.md) | No |
+| Type |
+| ------------------ |
+| [color](colors.md) |
---
### `borderRadius`
-| Type | Required |
-| ------ | -------- |
-| number | No |
+| Type |
+| ------ |
+| number |
---
### `borderTopLeftRadius`
-| Type | Required |
-| ------ | -------- |
-| number | No |
+| Type |
+| ------ |
+| number |
---
-### `backgroundColor`
+### `borderTopRightRadius`
-| Type | Required |
-| ------------------ | -------- |
-| [color](colors.md) | No |
+| Type |
+| ------ |
+| number |
---
### `borderWidth`
-| Type | Required |
-| ------ | -------- |
-| number | No |
+| Type |
+| ------ |
+| number |
---
### `opacity`
-| Type | Required |
-| ------ | -------- |
-| number | No |
+Set an opacity value for the image. The number should be in the range from `0.0` to `1.0`.
+
+| Type | Default |
+| ------ | ------- |
+| number | `1.0` |
---
### `overflow`
-| Type | Required |
-| ------------------------- | -------- |
-| enum('visible', 'hidden') | No |
+| Type | Default |
+| ----------------------------- | ----------- |
+| enum(`'visible'`, `'hidden'`) | `'visible'` |
---
-### `resizeMode`
+### `overlayColor` Android
-| Type | Required |
-| ------------------------------------------------------- | -------- |
-| enum('cover', 'contain', 'stretch', 'repeat', 'center') | No |
+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
-### `tintColor`
+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.
-Changes the color of all the non-transparent pixels to the tintColor.
+For details of how this works under the hood, see [Fresco documentation](https://frescolib.org/docs/rounded-corners-and-circles.html).
-| Type | Required |
-| ------------------ | -------- |
-| [color](colors.md) | No |
+| Type |
+| ------ |
+| string |
---
-### `overlayColor`
+### `resizeMode`
-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:
+| Type | Default |
+| ----------------------------------------------------------------- | --------- |
+| enum(`'cover'`, `'contain'`, `'stretch'`, `'repeat'`, `'center'`) | `'cover'` |
-- 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.
+### `tintColor`
-For details of how this works under the hood, see https://frescolib.org/docs/rounded-corners-and-circles.html
+Changes the color of all the non-transparent pixels to the tintColor.
-| Type | Required | Platform |
-| ------ | -------- | -------- |
-| string | No | Android |
+| Type |
+| ------------------ |
+| [color](colors.md) |