diff --git a/docs/Images.md b/docs/Images.md index 424e2dbc3..65ebc2903 100644 --- a/docs/Images.md +++ b/docs/Images.md @@ -120,6 +120,17 @@ Many of the images you will display in your app will not be available at compile style={{width: 400, height: 400}} /> ``` +## Uri Data Images + +Sometimes, you might be getting encoded image data from a REST API call. You can use the `'data:'` uri scheme to use these images. Same as for network resources, *you will need to manually specify the dimensions of your image*. + +> This is recommended for very small and dynamic images only, like icons in a list from a DB. + +```javascript +// include at least width and height! + +``` + ### Cache Control (iOS Only) In some cases you might only want to display an image if it is already in the local cache, i.e. a low resolution placeholder until a higher resolution is available. In other cases you do not care if the image is outdated and are willing to display an outdated image to save bandwidth. The `cache` source property gives you control over how the network layer interacts with the cache.