Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 755 Bytes

overlay.md

File metadata and controls

24 lines (18 loc) · 755 Bytes

<Overlay /> Component API

Props

Prop Type Default Note
image ImageSource A custom image to be used as the overlay. Only required local image resources and uri (as for images located in the net) are allowed to be used.
bounds Array<LatLng> The coordinates for the image (left-top corner, right-bottom corner). ie.[[lat, long], [lat, long]]
tappable Bool false Android only Boolean to allow an overlay to be tappable and use the onPress function.

Events

Event Name Returns Notes
onPress Android only Callback that is called when the user presses on the overlay

Types

type LatLng = [
  latitude: Number,
  longitude: Number,
]