UNPKG

react-native-map-clustering-cfs

Version:
42 lines (38 loc) 1.48 kB
declare module "react-native-map-clustering-cfs" { import * as React from "react"; import { LayoutAnimationConfig } from "react-native"; import Map, { MapViewProps, Marker } from "react-native-maps"; export type Cluster = {}; interface MapClusteringProps { clusteringEnabled?: boolean; spiralEnabled?: boolean; animationEnabled?: boolean; preserveClusterPressBehavior?: boolean; tracksViewChanges?: boolean; layoutAnimationConf?: LayoutAnimationConfig; radius?: number; maxZoom?: number; minZoom?: number; extent?: number; nodeSize?: number; minPoints?: number; edgePadding?: { top: number; left: number; right: number; bottom: number }; clusterColor?: string; clusterTextColor?: string; clusterFontFamily?: string; selectedClusterId?: string; selectedClusterColor?: string; spiderLineColor?: string; superClusterRef?: React.MutableRefObject<any>; mapRef?: (ref: React.Ref<Map>) => void; onClusterPress?: (cluster: Marker, markers?: Marker[]) => void; getClusterEngine?: (ref: any) => void; onMarkersChange?: (markers?: Marker[]) => void; onRegionChangeComplete?: (region: Region, details: Details, markers: Marker[], viewportMarkers: Marker[]) => void; renderCluster?: (cluster: any) => React.ReactNode; } export default class MapView extends React.Component< MapViewProps & MapClusteringProps, any > {} }