Image
import { Image } from '@rnmapbox/maps';
Image
props
name
string
required ID of the image
sdf
boolean
Make image an sdf optional - see SDF icons
stretchX
Array
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
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
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
Scale factor for the image.
children
ReactElement
required Single react native view rendering the image
methods
refresh()
arguments
Name | Type | Required | Description |
---|