diff --git a/src/MapPolyline.tsx b/src/MapPolyline.tsx index 200b940..4639ea8 100644 --- a/src/MapPolyline.tsx +++ b/src/MapPolyline.tsx @@ -76,7 +76,7 @@ export type MapPolylineProps = ViewProps & { tappable?: boolean; }; -type PolylinePressEvent = NativeSyntheticEvent<{ +export type PolylinePressEvent = NativeSyntheticEvent<{ action: 'polyline-press'; id?: string; coordinate?: LatLng; diff --git a/src/index.ts b/src/index.ts index d3f3872..02d6c8a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ export type { MapViewProps }; import Marker from './MapMarker'; import Polyline from './MapPolyline'; import Polygon from './MapPolygon'; -export type { MapPolylineProps } from './MapPolyline'; +export type { MapPolylineProps, PolylinePressEvent } from './MapPolyline'; export type { MapPolygonProps } from './MapPolygon'; export { default as Callout } from './MapCallout'; export type { MapCalloutProps } from './MapCallout';