11import * as React from 'react' ;
22
3- declare module "react-native-maps" {
3+ interface MapViewProps {
4+ provider ?: 'google' ;
5+ style : any ;
6+ customMapStyle ?: any [ ] ;
7+ customMapStyleString ?: string ;
8+ showsUserLocation ?: boolean ;
9+ userLocationAnnotationTitle ?: string ;
10+ showsMyLocationButton ?: boolean ;
11+ followsUserLocation ?: boolean ;
12+ showsPointsOfInterest ?: boolean ;
13+ showsCompass ?: boolean ;
14+ zoomEnabled ?: boolean ;
15+ rotateEnabled ?: boolean ;
16+ cacheEnabled ?: boolean ;
17+ loadingEnabled ?: boolean ;
18+ loadingBackgroundColor ?: any ;
19+ loadingIndicatorColor ?: any ;
20+ scrollEnabled ?: boolean ;
21+ pitchEnabled ?: boolean ;
22+ toolbarEnabled ?: boolean ;
23+ moveOnMarkerPress ?: boolean ;
24+ showsScale ?: boolean ;
25+ showsBuildings ?: boolean ;
26+ showsTraffic ?: boolean ;
27+ showsIndoors ?: boolean ;
28+ showsIndoorLevelPicker ?: boolean ;
29+ mapType ?: 'standard' | 'satellite' | 'hybrid' | 'terrain' | 'none' ;
30+ region ?: { latitude : number ; longitude : number ; latitudeDelta : number ; longitudeDelta : number ; } ;
31+ initialRegion ?: { latitude : number ; longitude : number ; latitudeDelta : number ; longitudeDelta : number ; } ;
32+ liteMode ?: boolean ;
33+ maxDelta ?: number ;
34+ minDelta ?: number ;
35+ legalLabelInsets ?: any ;
36+ onChange ?: Function ;
37+ onMapReady ?: Function ;
38+ onRegionChange ?: Function ;
39+ onRegionChangeComplete ?: Function ;
40+ onPress ?: Function ;
41+ onLayout ?: Function ;
42+ onLongPress ?: Function ;
43+ onPanDrag ?: Function ;
44+ onMarkerPress ?: Function ;
45+ onMarkerSelect ?: Function ;
46+ onMarkerDeselect ?: Function ;
47+ onCalloutPress ?: Function ;
48+ onMarkerDragStart ?: Function ;
49+ onMarkerDrag ?: Function ;
50+ onMarkerDragEnd ?: Function ;
51+ minZoomLevel ?: number ;
52+ maxZoomLevel ?: number ;
53+ }
454
5- export type ProviderType = 'google' ;
6- export type MapType = 'standard' | 'satellite' | 'hybrid' | 'terrain' | 'none' ;
7- export type LineCapType = 'butt' | 'round' | 'square' ;
8- export type LineJoinType = 'miter' | 'round' | 'bevel' ;
55+ declare class MapView extends React . Component < MapViewProps , any > {
56+ static Animated : any ;
57+ static AnimatedRegion : any ;
58+ }
959
10- export interface MapViewProperties {
11- provider ?: ProviderType ;
12- style ?: any ;
13- customMapStyle ?: any [ ] ;
14- customMapStyleString ?: string ;
15- showsUserLocation ?: boolean ;
16- userLocationAnnotationTitle ?: string ;
17- showsMyLocationButton ?: boolean ;
18- followsUserLocation ?: boolean ;
19- showsPointsOfInterest ?: boolean ;
20- showsCompass ?: boolean ;
21- zoomEnabled ?: boolean ;
22- rotateEnabled ?: boolean ;
23- cacheEnabled ?: boolean ;
24- loadingEnabled ?: boolean ;
25- loadingBackgroundColor ?: any ;
26- loadingIndicatorColor ?: any ;
27- scrollEnabled ?: boolean ;
28- pitchEnabled ?: boolean ;
29- toolbarEnabled ?: boolean ;
30- moveOnMarkerPress ?: boolean ;
31- showsScale ?: boolean ;
32- showsBuildings ?: boolean ;
33- showsTraffic ?: boolean ;
34- showsIndoors ?: boolean ;
35- showsIndoorLevelPicker ?: boolean ;
36- mapType ?: MapType ;
37- region ?: { latitude : number ; longitude : number ; latitudeDelta : number ; longitudeDelta : number ; } ;
38- initialRegion ?: { latitude : number ; longitude : number ; latitudeDelta : number ; longitudeDelta : number ; } ;
39- liteMode ?: boolean ;
40- maxDelta ?: number ;
41- minDelta ?: number ;
42- legalLabelInsets ?: any ;
43- onChange ?: Function ;
44- onMapReady ?: Function ;
45- onRegionChange ?: Function ;
46- onRegionChangeComplete ?: Function ;
47- onPress ?: Function ;
48- onLayout ?: Function ;
49- onLongPress ?: Function ;
50- onPanDrag ?: Function ;
51- onMarkerPress ?: Function ;
52- onMarkerSelect ?: Function ;
53- onMarkerDeselect ?: Function ;
54- onCalloutPress ?: Function ;
55- onMarkerDragStart ?: Function ;
56- onMarkerDrag ?: Function ;
57- onMarkerDragEnd ?: Function ;
58- minZoomLevel ?: number ;
59- maxZoomLevel ?: number ;
60- }
60+ declare namespace MapView {
61+
62+ type LineCapType = 'butt' | 'round' | 'square' ;
63+ type LineJoinType = 'miter' | 'round' | 'bevel' ;
6164
62- export interface MarkerProperties {
65+ interface MarkerProps {
6366 identifier ?: string ;
6467 reuseIdentifier ?: string ;
6568 title ?: string ;
@@ -81,9 +84,10 @@ declare module "react-native-maps" {
8184 onDragStart ?: Function ;
8285 onDrag ?: Function ;
8386 onDragEnd ?: Function ;
87+ zIndex ?: number ;
8488 }
8589
86- export interface MapPolylineProperties {
90+ interface MapPolylineProps {
8791 coordinates ?: { latitude : number ; longitude : number ; } [ ] ;
8892 onPress ?: Function ;
8993 tappable ?: boolean ;
@@ -99,7 +103,7 @@ declare module "react-native-maps" {
99103 lineDashPattern ?: number [ ] ;
100104 }
101105
102- export interface MapPolygonProperties {
106+ interface MapPolygonProps {
103107 coordinates ?: { latitude : number ; longitude : number ; } [ ] ;
104108 holes ?: { latitude : number ; longitude : number ; } [ ] [ ] ;
105109 onPress ?: Function ;
@@ -116,7 +120,7 @@ declare module "react-native-maps" {
116120 lineDashPattern ?: number [ ] ;
117121 }
118122
119- export interface MapCircleProperties {
123+ interface MapCircleProps {
120124 center : { latitude : number ; longitude : number } ;
121125 radius : number ;
122126 onPress ?: Function ;
@@ -131,29 +135,22 @@ declare module "react-native-maps" {
131135 lineDashPattern ?: number [ ] ;
132136 }
133137
134- export interface MapUrlTitleProperties {
138+ interface MapUrlTitleProps {
135139 urlTemplate : string ;
136140 zIndex ?: number ;
137141 }
138142
139- export interface MapCalloutProperties {
143+ interface MapCalloutProps {
140144 tooltip ?: boolean ;
141145 onPress ?: Function ;
142146 }
143147
144- class MapView extends React . Component < MapViewProperties , any > {
145- static Animated : any ;
146- static AnimatedRegion : any ;
147- }
148-
149- namespace MapView {
150- class Marker extends React . Component < MarkerProperties , any > { }
151- class Polyline extends React . Component < MapPolylineProperties , any > { }
152- class Polygon extends React . Component < MapPolygonProperties , any > { }
153- class Circle extends React . Component < MapCircleProperties , any > { }
154- class UrlTile extends React . Component < MapUrlTitleProperties , any > { }
155- class Callout extends React . Component < MapCalloutProperties , any > { }
156- }
157-
158- export default MapView ;
148+ export class Marker extends React . Component < MarkerProps , any > { }
149+ export class Polyline extends React . Component < MapPolylineProps , any > { }
150+ export class Polygon extends React . Component < MapPolygonProps , any > { }
151+ export class Circle extends React . Component < MapCircleProps , any > { }
152+ export class UrlTile extends React . Component < MapUrlTitleProps , any > { }
153+ export class Callout extends React . Component < MapCalloutProps , any > { }
159154}
155+
156+ export = MapView ;
0 commit comments