react-native-maps 1.23.7 → 1.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AnimatedRegion.ts +1 -1
- package/src/Geojson.tsx +5 -5
- package/src/MapCallout.tsx +5 -5
- package/src/MapCalloutSubview.tsx +9 -5
- package/src/MapCircle.tsx +5 -5
- package/src/MapHeatmap.tsx +11 -6
- package/src/MapLocalTile.tsx +4 -4
- package/src/MapMarker.tsx +9 -9
- package/src/MapMarkerNativeComponent.ts +2 -2
- package/src/MapOverlay.tsx +9 -9
- package/src/MapPolygon.tsx +6 -6
- package/src/MapPolygon.types.ts +2 -2
- package/src/MapPolyline.tsx +5 -5
- package/src/MapUrlTile.tsx +4 -4
- package/src/MapView.tsx +13 -10
- package/src/MapView.types.ts +2 -2
- package/src/MapViewNativeComponent.ts +3 -3
- package/src/MapWMSTile.tsx +4 -4
- package/src/createFabricMap.tsx +4 -2
- package/src/decorateMapComponent.ts +2 -2
- package/src/fixImageProp.ts +1 -1
- package/src/index.ts +1 -1
- package/src/sharedTypes.ts +1 -1
- package/src/specs/NativeAirMapsModule.ts +1 -1
- package/src/specs/NativeComponentCallout.ts +1 -1
- package/src/specs/NativeComponentCircle.ts +1 -1
- package/src/specs/NativeComponentGoogleMapView.ts +1 -1
- package/src/specs/NativeComponentGooglePolygon.ts +1 -1
- package/src/specs/NativeComponentMapView.ts +1 -1
- package/src/specs/NativeComponentMarker.ts +2 -2
- package/src/specs/NativeComponentOverlay.ts +1 -1
- package/src/specs/NativeComponentPolyline.ts +1 -1
- package/src/specs/NativeComponentUrlTile.ts +4 -1
- package/src/specs/NativeComponentWMSTile.ts +4 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.23.
|
|
8
|
+
"version": "1.23.8",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
package/src/AnimatedRegion.ts
CHANGED
package/src/Geojson.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
Feature,
|
|
4
4
|
FeatureCollection,
|
|
5
5
|
Point,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
Polygon,
|
|
11
11
|
MultiPolygon,
|
|
12
12
|
} from 'geojson';
|
|
13
|
-
import Marker, {MapMarkerProps as MarkerProps} from './MapMarker';
|
|
14
|
-
import {MapPolygonProps as PolygonProps} from './MapPolygon';
|
|
15
|
-
import {MapPolylineProps as PolylineProps} from './MapPolyline';
|
|
13
|
+
import Marker, {type MapMarkerProps as MarkerProps} from './MapMarker';
|
|
14
|
+
import type {MapPolygonProps as PolygonProps} from './MapPolygon';
|
|
15
|
+
import type {MapPolylineProps as PolylineProps} from './MapPolyline';
|
|
16
16
|
import Polyline from './MapPolyline';
|
|
17
17
|
import MapPolygon from './MapPolygon';
|
|
18
|
-
import {LatLng} from './sharedTypes';
|
|
18
|
+
import type {LatLng} from './sharedTypes';
|
|
19
19
|
|
|
20
20
|
export type GeojsonProps = {
|
|
21
21
|
/**
|
package/src/MapCallout.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyleSheet, ViewProps} from 'react-native';
|
|
2
|
+
import {StyleSheet, type ViewProps} from 'react-native';
|
|
3
3
|
import decorateMapComponent, {
|
|
4
|
-
MapManagerCommand,
|
|
5
|
-
NativeComponent,
|
|
6
4
|
ProviderContext,
|
|
7
5
|
SUPPORTED,
|
|
8
|
-
UIManagerCommand,
|
|
9
6
|
USES_DEFAULT_IMPLEMENTATION,
|
|
7
|
+
type MapManagerCommand,
|
|
8
|
+
type NativeComponent,
|
|
9
|
+
type UIManagerCommand,
|
|
10
10
|
} from './decorateMapComponent';
|
|
11
|
-
import {CalloutPressEvent} from './sharedTypes';
|
|
11
|
+
import type {CalloutPressEvent} from './sharedTypes';
|
|
12
12
|
|
|
13
13
|
export type MapCalloutProps = ViewProps & {
|
|
14
14
|
/**
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
StyleSheet,
|
|
4
|
+
type NativeSyntheticEvent,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
} from 'react-native';
|
|
3
7
|
import decorateMapComponent, {
|
|
4
8
|
SUPPORTED,
|
|
5
9
|
NOT_SUPPORTED,
|
|
6
10
|
ProviderContext,
|
|
7
|
-
NativeComponent,
|
|
8
|
-
MapManagerCommand,
|
|
9
|
-
UIManagerCommand,
|
|
11
|
+
type NativeComponent,
|
|
12
|
+
type MapManagerCommand,
|
|
13
|
+
type UIManagerCommand,
|
|
10
14
|
} from './decorateMapComponent';
|
|
11
|
-
import {Frame, Point} from './sharedTypes';
|
|
15
|
+
import type {Frame, Point} from './sharedTypes';
|
|
12
16
|
|
|
13
17
|
export type MapCalloutSubviewProps = ViewProps & {
|
|
14
18
|
/**
|
package/src/MapCircle.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {View, ViewProps} from 'react-native';
|
|
2
|
+
import {View, type ViewProps} from 'react-native';
|
|
3
3
|
import decorateMapComponent, {
|
|
4
4
|
USES_DEFAULT_IMPLEMENTATION,
|
|
5
5
|
SUPPORTED,
|
|
6
6
|
ProviderContext,
|
|
7
|
-
NativeComponent,
|
|
8
|
-
MapManagerCommand,
|
|
9
|
-
UIManagerCommand,
|
|
7
|
+
type NativeComponent,
|
|
8
|
+
type MapManagerCommand,
|
|
9
|
+
type UIManagerCommand,
|
|
10
10
|
} from './decorateMapComponent';
|
|
11
|
-
import {LatLng, LineCapType, LineJoinType} from './sharedTypes';
|
|
11
|
+
import type {LatLng, LineCapType, LineJoinType} from './sharedTypes';
|
|
12
12
|
|
|
13
13
|
export type MapCircleProps = ViewProps & {
|
|
14
14
|
/**
|
package/src/MapHeatmap.tsx
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
processColor,
|
|
4
|
+
View,
|
|
5
|
+
type ProcessedColorValue,
|
|
6
|
+
type ViewProps,
|
|
7
|
+
} from 'react-native';
|
|
3
8
|
import decorateMapComponent, {
|
|
4
|
-
MapManagerCommand,
|
|
5
|
-
NativeComponent,
|
|
6
9
|
ProviderContext,
|
|
7
10
|
SUPPORTED,
|
|
8
|
-
UIManagerCommand,
|
|
9
11
|
USES_DEFAULT_IMPLEMENTATION,
|
|
12
|
+
type MapManagerCommand,
|
|
13
|
+
type NativeComponent,
|
|
14
|
+
type UIManagerCommand,
|
|
10
15
|
} from './decorateMapComponent';
|
|
11
|
-
import {LatLng} from './sharedTypes';
|
|
12
|
-
import {Modify} from './sharedTypesInternal';
|
|
16
|
+
import type {LatLng} from './sharedTypes';
|
|
17
|
+
import type {Modify} from './sharedTypesInternal';
|
|
13
18
|
|
|
14
19
|
export type MapHeatmapProps = ViewProps & {
|
|
15
20
|
gradient?: {
|
package/src/MapLocalTile.tsx
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {ViewProps} from 'react-native';
|
|
2
|
+
import type {ViewProps} from 'react-native';
|
|
3
3
|
|
|
4
4
|
import decorateMapComponent, {
|
|
5
5
|
USES_DEFAULT_IMPLEMENTATION,
|
|
6
6
|
SUPPORTED,
|
|
7
7
|
ProviderContext,
|
|
8
|
-
NativeComponent,
|
|
9
|
-
MapManagerCommand,
|
|
10
|
-
UIManagerCommand,
|
|
8
|
+
type NativeComponent,
|
|
9
|
+
type MapManagerCommand,
|
|
10
|
+
type UIManagerCommand,
|
|
11
11
|
} from './decorateMapComponent';
|
|
12
12
|
|
|
13
13
|
export type MapLocalTileProps = ViewProps & {
|
package/src/MapMarker.tsx
CHANGED
|
@@ -2,29 +2,29 @@ import * as React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
StyleSheet,
|
|
4
4
|
Animated,
|
|
5
|
-
ViewProps,
|
|
6
|
-
ImageURISource,
|
|
7
|
-
ImageRequireSource,
|
|
8
5
|
Platform,
|
|
6
|
+
type ViewProps,
|
|
7
|
+
type ImageURISource,
|
|
8
|
+
type ImageRequireSource,
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
|
|
11
11
|
import decorateMapComponent, {
|
|
12
|
-
MapManagerCommand,
|
|
13
|
-
NativeComponent,
|
|
14
12
|
ProviderContext,
|
|
15
13
|
SUPPORTED,
|
|
16
|
-
UIManagerCommand,
|
|
17
14
|
USES_DEFAULT_IMPLEMENTATION,
|
|
15
|
+
type MapManagerCommand,
|
|
16
|
+
type NativeComponent,
|
|
17
|
+
type UIManagerCommand,
|
|
18
18
|
} from './decorateMapComponent';
|
|
19
19
|
import {
|
|
20
20
|
Commands,
|
|
21
|
-
MapMarkerNativeComponentType,
|
|
21
|
+
type MapMarkerNativeComponentType,
|
|
22
22
|
} from './MapMarkerNativeComponent';
|
|
23
23
|
|
|
24
24
|
import {Commands as FabricCommands} from './specs/NativeComponentMarker';
|
|
25
25
|
import type {AppleMarkerPriority} from './specs/NativeComponentMarker';
|
|
26
26
|
|
|
27
|
-
import {
|
|
27
|
+
import type {
|
|
28
28
|
CalloutPressEvent,
|
|
29
29
|
LatLng,
|
|
30
30
|
MarkerDeselectEvent,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
MarkerSelectEvent,
|
|
35
35
|
Point,
|
|
36
36
|
} from './sharedTypes';
|
|
37
|
-
import {Modify} from './sharedTypesInternal';
|
|
37
|
+
import type {Modify} from './sharedTypesInternal';
|
|
38
38
|
|
|
39
39
|
import {PROVIDER_GOOGLE} from './ProviderConstants';
|
|
40
40
|
import {fixImageProp} from './fixImageProp';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {HostComponent} from 'react-native';
|
|
2
2
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
3
|
-
import {NativeProps} from './MapMarker';
|
|
4
|
-
import {LatLng} from './sharedTypes';
|
|
3
|
+
import type {NativeProps} from './MapMarker';
|
|
4
|
+
import type {LatLng} from './sharedTypes';
|
|
5
5
|
|
|
6
6
|
export type MapMarkerNativeComponentType = HostComponent<NativeProps>;
|
|
7
7
|
|
package/src/MapOverlay.tsx
CHANGED
|
@@ -2,23 +2,23 @@ import * as React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
StyleSheet,
|
|
4
4
|
Animated,
|
|
5
|
-
ViewProps,
|
|
6
|
-
ImageURISource,
|
|
7
|
-
ImageRequireSource,
|
|
8
|
-
NativeSyntheticEvent,
|
|
9
5
|
Platform,
|
|
6
|
+
type ViewProps,
|
|
7
|
+
type ImageURISource,
|
|
8
|
+
type ImageRequireSource,
|
|
9
|
+
type NativeSyntheticEvent,
|
|
10
10
|
} from 'react-native';
|
|
11
11
|
|
|
12
12
|
import decorateMapComponent, {
|
|
13
|
-
MapManagerCommand,
|
|
14
|
-
NativeComponent,
|
|
15
13
|
ProviderContext,
|
|
16
14
|
SUPPORTED,
|
|
17
|
-
UIManagerCommand,
|
|
18
15
|
USES_DEFAULT_IMPLEMENTATION,
|
|
16
|
+
type MapManagerCommand,
|
|
17
|
+
type NativeComponent,
|
|
18
|
+
type UIManagerCommand,
|
|
19
19
|
} from './decorateMapComponent';
|
|
20
|
-
import {LatLng, Point} from './sharedTypes';
|
|
21
|
-
import {Modify} from './sharedTypesInternal';
|
|
20
|
+
import type {LatLng, Point} from './sharedTypes';
|
|
21
|
+
import type {Modify} from './sharedTypesInternal';
|
|
22
22
|
import {fixImageProp} from './fixImageProp';
|
|
23
23
|
|
|
24
24
|
export type MapOverlayProps = ViewProps & {
|
package/src/MapPolygon.tsx
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {View, ViewProps} from 'react-native';
|
|
2
|
+
import {View, type ViewProps} from 'react-native';
|
|
3
3
|
import decorateMapComponent, {
|
|
4
4
|
USES_DEFAULT_IMPLEMENTATION,
|
|
5
5
|
SUPPORTED,
|
|
6
6
|
ProviderContext,
|
|
7
|
-
NativeComponent,
|
|
8
|
-
MapManagerCommand,
|
|
9
|
-
UIManagerCommand,
|
|
7
|
+
type NativeComponent,
|
|
8
|
+
type MapManagerCommand,
|
|
9
|
+
type UIManagerCommand,
|
|
10
10
|
} from './decorateMapComponent';
|
|
11
|
-
import {PolygonPressEvent} from './MapPolygon.types';
|
|
12
|
-
import {LatLng, LineCapType, LineJoinType} from './sharedTypes';
|
|
11
|
+
import type {PolygonPressEvent} from './MapPolygon.types';
|
|
12
|
+
import type {LatLng, LineCapType, LineJoinType} from './sharedTypes';
|
|
13
13
|
|
|
14
14
|
export type MapPolygonProps = ViewProps & {
|
|
15
15
|
/**
|
package/src/MapPolygon.types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {NativeSyntheticEvent} from 'react-native';
|
|
2
|
-
import {LatLng, Point} from './sharedTypes';
|
|
1
|
+
import type {NativeSyntheticEvent} from 'react-native';
|
|
2
|
+
import type {LatLng, Point} from './sharedTypes';
|
|
3
3
|
|
|
4
4
|
// All types in this file are directly exported with the package for external
|
|
5
5
|
// use.
|
package/src/MapPolyline.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {View, type NativeSyntheticEvent, type ViewProps} from 'react-native';
|
|
3
3
|
import decorateMapComponent, {
|
|
4
4
|
USES_DEFAULT_IMPLEMENTATION,
|
|
5
5
|
SUPPORTED,
|
|
6
6
|
ProviderContext,
|
|
7
|
-
NativeComponent,
|
|
8
|
-
MapManagerCommand,
|
|
9
|
-
UIManagerCommand,
|
|
7
|
+
type NativeComponent,
|
|
8
|
+
type MapManagerCommand,
|
|
9
|
+
type UIManagerCommand,
|
|
10
10
|
} from './decorateMapComponent';
|
|
11
|
-
import {LatLng, LineCapType, LineJoinType, Point} from './sharedTypes';
|
|
11
|
+
import type {LatLng, LineCapType, LineJoinType, Point} from './sharedTypes';
|
|
12
12
|
|
|
13
13
|
export type MapPolylineProps = ViewProps & {
|
|
14
14
|
/**
|
package/src/MapUrlTile.tsx
CHANGED
|
@@ -4,11 +4,11 @@ import decorateMapComponent, {
|
|
|
4
4
|
USES_DEFAULT_IMPLEMENTATION,
|
|
5
5
|
SUPPORTED,
|
|
6
6
|
ProviderContext,
|
|
7
|
-
NativeComponent,
|
|
8
|
-
MapManagerCommand,
|
|
9
|
-
UIManagerCommand,
|
|
7
|
+
type NativeComponent,
|
|
8
|
+
type MapManagerCommand,
|
|
9
|
+
type UIManagerCommand,
|
|
10
10
|
} from './decorateMapComponent';
|
|
11
|
-
import {ViewProps} from 'react-native';
|
|
11
|
+
import type {ViewProps} from 'react-native';
|
|
12
12
|
|
|
13
13
|
export type MapUrlTileProps = ViewProps & {
|
|
14
14
|
/**
|
package/src/MapView.tsx
CHANGED
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
Animated as RNAnimated,
|
|
4
4
|
Animated,
|
|
5
5
|
findNodeHandle,
|
|
6
|
-
HostComponent,
|
|
7
|
-
NativeSyntheticEvent,
|
|
8
6
|
Platform,
|
|
9
7
|
requireNativeComponent,
|
|
10
|
-
|
|
8
|
+
type HostComponent,
|
|
9
|
+
type NativeSyntheticEvent,
|
|
10
|
+
type ViewProps,
|
|
11
11
|
} from 'react-native';
|
|
12
12
|
import {
|
|
13
13
|
createNotSupportedComponent,
|
|
14
|
-
NativeComponent,
|
|
15
14
|
ProviderContext,
|
|
15
|
+
type NativeComponent,
|
|
16
16
|
} from './decorateMapComponent';
|
|
17
|
-
import {
|
|
17
|
+
import type {
|
|
18
18
|
CalloutPressEvent,
|
|
19
19
|
ClickEvent,
|
|
20
20
|
Frame,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
Provider,
|
|
29
29
|
Region,
|
|
30
30
|
} from './sharedTypes';
|
|
31
|
-
import {
|
|
31
|
+
import type {
|
|
32
32
|
ActiveIndoorLevel,
|
|
33
33
|
Address,
|
|
34
34
|
BoundingBox,
|
|
@@ -50,17 +50,20 @@ import {
|
|
|
50
50
|
SnapshotOptions,
|
|
51
51
|
UserLocationChangeEvent,
|
|
52
52
|
} from './MapView.types';
|
|
53
|
-
import {Modify} from './sharedTypesInternal';
|
|
54
|
-
import {
|
|
53
|
+
import type {Modify} from './sharedTypesInternal';
|
|
54
|
+
import {
|
|
55
|
+
Commands,
|
|
56
|
+
type MapViewNativeComponentType,
|
|
57
|
+
} from './MapViewNativeComponent';
|
|
55
58
|
|
|
56
59
|
import FabricMapView, {
|
|
57
60
|
Commands as FabricCommands,
|
|
58
|
-
MapFabricNativeProps,
|
|
61
|
+
type MapFabricNativeProps,
|
|
59
62
|
} from './specs/NativeComponentMapView';
|
|
60
63
|
import GoogleMapView, {
|
|
61
64
|
Commands as GoogleCommands,
|
|
62
65
|
} from './specs/NativeComponentGoogleMapView';
|
|
63
|
-
import createFabricMap, {FabricMapHandle} from './createFabricMap';
|
|
66
|
+
import createFabricMap, {type FabricMapHandle} from './createFabricMap';
|
|
64
67
|
|
|
65
68
|
const FabricMap = createFabricMap(FabricMapView, FabricCommands);
|
|
66
69
|
var FabricGoogleMap: any = null;
|
package/src/MapView.types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {ClickEvent, LatLng, Point, Region} from './sharedTypes';
|
|
2
|
-
import {NativeSyntheticEvent} from 'react-native';
|
|
1
|
+
import type {ClickEvent, LatLng, Point, Region} from './sharedTypes';
|
|
2
|
+
import type {NativeSyntheticEvent} from 'react-native';
|
|
3
3
|
|
|
4
4
|
// All types in this file are directly exported with the package for external
|
|
5
5
|
// use.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type {HostComponent} from 'react-native';
|
|
2
2
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
3
|
-
import {NativeProps} from './MapView';
|
|
4
|
-
import {Camera, EdgePadding} from './MapView.types';
|
|
5
|
-
import {LatLng, Region} from './sharedTypes';
|
|
3
|
+
import type {NativeProps} from './MapView';
|
|
4
|
+
import type {Camera, EdgePadding} from './MapView.types';
|
|
5
|
+
import type {LatLng, Region} from './sharedTypes';
|
|
6
6
|
|
|
7
7
|
export type MapViewNativeComponentType = HostComponent<NativeProps>;
|
|
8
8
|
|
package/src/MapWMSTile.tsx
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {ViewProps} from 'react-native';
|
|
2
|
+
import type {ViewProps} from 'react-native';
|
|
3
3
|
|
|
4
4
|
import decorateMapComponent, {
|
|
5
5
|
USES_DEFAULT_IMPLEMENTATION,
|
|
6
6
|
SUPPORTED,
|
|
7
7
|
ProviderContext,
|
|
8
|
-
NativeComponent,
|
|
9
|
-
MapManagerCommand,
|
|
10
|
-
UIManagerCommand,
|
|
8
|
+
type NativeComponent,
|
|
9
|
+
type MapManagerCommand,
|
|
10
|
+
type UIManagerCommand,
|
|
11
11
|
} from './decorateMapComponent';
|
|
12
12
|
|
|
13
13
|
export type MapWMSTileProps = ViewProps & {
|
package/src/createFabricMap.tsx
CHANGED
|
@@ -7,8 +7,10 @@ import type {
|
|
|
7
7
|
EdgePadding,
|
|
8
8
|
SnapshotOptions,
|
|
9
9
|
} from './MapView.types';
|
|
10
|
-
import NativeAirMapsModule, {
|
|
11
|
-
|
|
10
|
+
import NativeAirMapsModule, {
|
|
11
|
+
type MapBoundaries,
|
|
12
|
+
} from './specs/NativeAirMapsModule';
|
|
13
|
+
import type {MapFabricNativeProps} from './specs/NativeComponentMapView';
|
|
12
14
|
|
|
13
15
|
export type FabricMapViewProps = MapFabricNativeProps;
|
|
14
16
|
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
NativeModules,
|
|
5
5
|
Platform,
|
|
6
6
|
UIManager,
|
|
7
|
-
HostComponent,
|
|
7
|
+
type HostComponent,
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
import {PROVIDER_DEFAULT, PROVIDER_GOOGLE} from './ProviderConstants';
|
|
10
|
-
import {Provider} from './sharedTypes';
|
|
10
|
+
import type {Provider} from './sharedTypes';
|
|
11
11
|
import {MapCallout} from './MapCallout';
|
|
12
12
|
import {MapOverlay} from './MapOverlay';
|
|
13
13
|
import {MapCalloutSubview} from './MapCalloutSubview';
|
package/src/fixImageProp.ts
CHANGED
package/src/index.ts
CHANGED
package/src/sharedTypes.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type {TurboModule} from 'react-native';
|
|
|
2
2
|
import {TurboModuleRegistry} from 'react-native';
|
|
3
3
|
import type {Double} from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
4
|
import type {Camera} from './NativeComponentMapView';
|
|
5
|
-
import {Address} from '../MapView.types';
|
|
5
|
+
import type {Address} from '../MapView.types';
|
|
6
6
|
|
|
7
7
|
type LatLng = {
|
|
8
8
|
latitude: Double;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {HostComponent, ViewProps} from 'react-native';
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
5
|
Double,
|
|
6
6
|
BubblingEventHandler,
|
|
7
7
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
@@ -2,7 +2,7 @@ import type {HostComponent, ViewProps, ColorValue} from 'react-native';
|
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
4
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
6
|
Double,
|
|
7
7
|
Int32,
|
|
8
8
|
WithDefault,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {HostComponent, ViewProps, ColorValue} from 'react-native';
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
5
|
Double,
|
|
6
6
|
BubblingEventHandler,
|
|
7
7
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
@@ -2,7 +2,7 @@ import type {HostComponent, ViewProps, ColorValue} from 'react-native';
|
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
4
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
6
|
Double,
|
|
7
7
|
Int32,
|
|
8
8
|
WithDefault,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {HostComponent} from 'react-native';
|
|
1
|
+
import type {HostComponent} from 'react-native';
|
|
2
2
|
import type {
|
|
3
3
|
ViewProps,
|
|
4
4
|
ColorValue,
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
|
|
8
8
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
9
9
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
10
|
-
import {
|
|
10
|
+
import type {
|
|
11
11
|
Int32,
|
|
12
12
|
Double,
|
|
13
13
|
BubblingEventHandler,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type {HostComponent, ViewProps} from 'react-native';
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
|
+
Int32,
|
|
6
|
+
WithDefault,
|
|
7
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
8
|
|
|
6
9
|
export interface UrlTileFabricNativeProps extends ViewProps {
|
|
7
10
|
/**
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type {HostComponent, ViewProps} from 'react-native';
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
|
+
Int32,
|
|
6
|
+
WithDefault,
|
|
7
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
8
|
|
|
6
9
|
export interface WMSTileFabricNativeProps extends ViewProps {
|
|
7
10
|
/**
|