maplibre-react-native
maplibre-react-native copied to clipboard
Interface PointAnnotationProps should have functions take an Event argument
Events function in PointAnnotationProps
create a TypeScript error because their interface don't allow for any arguments to be passed
export interface PointAnnotationProps extends ViewProps {
id: string;
title?: string;
snippet?: string;
selected?: boolean;
draggable?: boolean;
coordinate: GeoJSON.Position;
anchor?: Point;
onSelected?: () => void;
onDeselected?: () => void;
onDragStart?: () => void;
onDrag?: () => void;
onDragEnd?: () => void;
}
Overload 2 of 2, '(props: PointAnnotationProps, context: any): PointAnnotation', gave the following error. Type '(e: any) => void' is not assignable to type '() => void'.ts(2769)