import { Image } from '@rnmapbox/maps';
Image| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| name | string |
none |
true |
ID of the image |
| sdf | boolean |
none |
false |
Make image an sdf optional - see SDF icons |
| stretchX | Array |
none |
false |
An array of two-element arrays, consisting of two numbers that represent, the from position and the to position of areas that can be stretched horizontally. |
| stretchY | Array |
none |
false |
An array of two-element arrays, consisting of two numbers that represent, the from position and the to position of areas that can be stretched vertically. |
| content | tuple |
none |
false |
An array of four numbers, with the first two specifying the left, top corner, and the last two specifying the right, bottom corner. If present, and if the icon uses icon-text-fit, the symbol's text will be fit inside the content box. |
| scale | number |
none |
false |
Scale factor for the image. |
| children | ReactElement |
none |
true |
Single react native view rendering the image |