@rnmapbox/maps 10.1.0-beta.21 → 10.1.0-beta.23
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/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +12 -5
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +7 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLayer.kt +25 -6
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +7 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayer.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +8 -2
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/codeparts/LayerManagerCommonProps.codepart-kt.ejs +59 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Layer.kt +7 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Layer.kt +3 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeMapViewModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXImageModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXMovePointShapeAnimatorModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXPointAnnotationModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXShapeSourceModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXViewportModuleSpec.java +2 -1
- package/ios/RNMBX/CommonLayerProperties.H +2 -0
- package/ios/RNMBX/RNMBXLayer.swift +27 -0
- package/lib/commonjs/components/CircleLayer.js +7 -2
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +7 -2
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +7 -2
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +7 -2
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +7 -2
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/SkyLayer.js +2 -2
- package/lib/commonjs/components/SkyLayer.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +7 -2
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +17 -0
- package/lib/module/components/CircleLayer.js +7 -2
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +7 -2
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +7 -2
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/LineLayer.js +7 -2
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/RasterLayer.js +7 -2
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/SkyLayer.js +2 -2
- package/lib/module/components/SkyLayer.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +7 -2
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +17 -0
- package/lib/typescript/src/components/CircleLayer.d.ts +11 -3
- package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/FillLayer.d.ts +10 -1
- package/lib/typescript/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/HeatmapLayer.d.ts +12 -4
- package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts +10 -1
- package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +5 -1
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts +11 -2
- package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/SymbolLayer.d.ts +17 -5
- package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +6 -3
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/setup-jest.js +3 -1
- package/src/components/CircleLayer.tsx +17 -5
- package/src/components/FillLayer.tsx +16 -3
- package/src/components/HeatmapLayer.tsx +18 -6
- package/src/components/LineLayer.tsx +16 -3
- package/src/components/RasterLayer.tsx +17 -4
- package/src/components/SkyLayer.tsx +2 -2
- package/src/components/SymbolLayer.tsx +26 -7
- package/src/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
- package/src/specs/RNMBXCircleLayerNativeComponent.ts +9 -3
- package/src/specs/RNMBXFillLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXLineLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXRasterLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXSymbolLayerNativeComponent.ts +17 -11
- package/src/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +17 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
2
|
+
|
|
3
|
+
type LayerPropsCommon = {
|
|
4
|
+
/**
|
|
5
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The id refers to en existing layer in the style. Does not create a new layer.
|
|
11
|
+
*/
|
|
12
|
+
existing?: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The source from which to obtain the data to style.
|
|
16
|
+
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
17
|
+
* Inferred from parent source only if the layer is a direct child to it.
|
|
18
|
+
*/
|
|
19
|
+
sourceID?: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
23
|
+
*/
|
|
24
|
+
sourceLayerID?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Inserts a layer above aboveLayerID.
|
|
28
|
+
*/
|
|
29
|
+
aboveLayerID?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Inserts a layer below belowLayerID
|
|
33
|
+
*/
|
|
34
|
+
belowLayerID?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Inserts a layer at a specified index
|
|
38
|
+
*/
|
|
39
|
+
layerIndex?: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Filter only the features in the source layer that satisfy a condition that you define
|
|
43
|
+
*/
|
|
44
|
+
filter?: FilterExpression;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The minimum zoom level at which the layer gets parsed and appears.
|
|
48
|
+
*/
|
|
49
|
+
minZoomLevel?: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The maximum zoom level at which the layer gets parsed and appears.
|
|
53
|
+
*/
|
|
54
|
+
maxZoomLevel?: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
58
|
+
*
|
|
59
|
+
* v11 only
|
|
60
|
+
*/
|
|
61
|
+
slot?: Slot;
|
|
62
|
+
};
|
|
@@ -4,11 +4,11 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
id: UnsafeMixed<string>;
|
|
11
|
+
type CommonProps = {
|
|
12
12
|
sourceID: OptionalProp<string>;
|
|
13
13
|
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
@@ -16,11 +16,17 @@ export interface NativeProps extends ViewProps {
|
|
|
16
16
|
aboveLayerID: OptionalProp<string>;
|
|
17
17
|
belowLayerID: OptionalProp<string>;
|
|
18
18
|
layerIndex: OptionalProp<Int32>;
|
|
19
|
-
reactStyle: UnsafeMixed<any>;
|
|
20
19
|
|
|
21
20
|
maxZoomLevel: OptionalProp<Double>;
|
|
22
21
|
minZoomLevel: OptionalProp<Double>;
|
|
23
22
|
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
26
|
+
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
2
|
+
type OptionalProp<T> = UnsafeMixed<T>;
|
|
3
|
+
|
|
4
|
+
type CommonProps = {
|
|
5
|
+
sourceID: OptionalProp<string>;
|
|
6
|
+
existing: OptionalProp<boolean>;
|
|
7
|
+
filter: UnsafeMixed<any[]>;
|
|
8
|
+
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
|
|
13
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
14
|
+
minZoomLevel: OptionalProp<Double>;
|
|
15
|
+
sourceLayerID: OptionalProp<string>;
|
|
16
|
+
slot: OptionalProp<string>;
|
|
17
|
+
};
|