# Image

### Styles

* Flexbox Styles
* View Styles
* Transform Styles

### Props

| Name                   | Type                                                      | Description                                                                                                                                                                                                                           |
| ---------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **accessibilityLabel** | `string`                                                  | <ul><li>Alternate text to display if the image cannot be loaded or by screen readers</li></ul>                                                                                                                                        |
| **headers**            | `{[headerName:  string]: string}`                         | <ul><li>HTTP headers to include when fetching the URL</li></ul>                                                                                                                                                                       |
| **onError**            | `(err?: Error) => void`                                   | <ul><li>Called when an error occurs that prevents the image from loading</li></ul>                                                                                                                                                    |
| **onLoad**             | `(size: Dimensions) => void`                              | <ul><li>Called when the image successfully loads</li></ul>                                                                                                                                                                            |
| **resizeMethod**       | `'auto' \| 'resize' \| 'scale'`                           | <ul><li>Android-specific resize property</li></ul>                                                                                                                                                                                    |
| **resizeMode**         | `'stretch' \| 'contain' \| 'cover' \| 'auto' \| 'repeat'` | <ul><li>Determines how to resize the image if its natural size does not match the size of the container </li><li>Note: In Web version, 'auto' doesn't scale down image if width/height smaller than the original image size</li></ul> |
| **source**             | `string`                                                  | <ul><li>URL to image</li></ul>                                                                                                                                                                                                        |
| **style**              | `ImageStyleRuleSet \| ImageStyleRuleSet[ ]`               | <ul><li>See below for supported styles</li></ul>                                                                                                                                                                                      |
| **testId**             | `string`                                                  | <ul><li>ID that can be used to identify the instantiated element for testing purposes</li></ul>                                                                                                                                       |
| **title**              | `string`                                                  | <ul><li>Tooltip for image</li></ul>                                                                                                                                                                                                   |
