react-native-maps 1.21.0-alpha.27 → 1.21.0-alpha.28

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.
@@ -517,13 +517,9 @@ using namespace facebook::react;
517
517
 
518
518
 
519
519
  REMAP_MAPVIEW_PROP(pitchEnabled)
520
-
521
520
  REMAP_MAPVIEW_PROP(zoomTapEnabled)
522
-
523
521
  REMAP_MAPVIEW_PROP(scrollEnabled)
524
- if (_view.scrollEnabled != newViewProps.scrollEnabled){
525
- [_view setScrollEnabled:newViewProps.scrollEnabled];
526
- }
522
+
527
523
 
528
524
  if (newViewProps.minZoom != oldViewProps.minZoom || newViewProps.maxZoom != oldViewProps.maxZoom){
529
525
  [_view setMinZoom:newViewProps.minZoom maxZoom:newViewProps.maxZoom];
@@ -517,7 +517,7 @@ export interface MapFabricNativeProps extends ViewProps {
517
517
  * @platform iOS: Google Maps only
518
518
  * @platform Android: Supported
519
519
  */
520
- pitchEnabled?: boolean;
520
+ pitchEnabled?: WithDefault<boolean, true>;
521
521
  /**
522
522
  * The region to be displayed by the map.
523
523
  * The region is defined by the center coordinates and the span of coordinates to display.
@@ -533,7 +533,7 @@ export interface MapFabricNativeProps extends ViewProps {
533
533
  * @platform iOS: Google Maps only
534
534
  * @platform Android: Supported
535
535
  */
536
- rotateEnabled?: boolean;
536
+ rotateEnabled?: WithDefault<boolean, true>;
537
537
  /**
538
538
  * If `false` the map will stay centered while rotating or zooming.
539
539
  *
@@ -541,7 +541,7 @@ export interface MapFabricNativeProps extends ViewProps {
541
541
  * @platform iOS: Google Maps only
542
542
  * @platform Android: Supported
543
543
  */
544
- scrollDuringRotateOrZoomEnabled?: boolean;
544
+ scrollDuringRotateOrZoomEnabled?: WithDefault<boolean, true>;
545
545
  /**
546
546
  * If `false` the user won't be able to change the map region being displayed.
547
547
  *
@@ -549,7 +549,7 @@ export interface MapFabricNativeProps extends ViewProps {
549
549
  * @platform iOS: Supported
550
550
  * @platform Android: Supported
551
551
  */
552
- scrollEnabled?: boolean;
552
+ scrollEnabled?: WithDefault<boolean, true>;
553
553
  /**
554
554
  * A Boolean indicating whether the map displays extruded building information.
555
555
  *
@@ -557,7 +557,7 @@ export interface MapFabricNativeProps extends ViewProps {
557
557
  * @platform iOS: Not supported
558
558
  * @platform Android: Supported
559
559
  */
560
- showsBuildings?: boolean;
560
+ showsBuildings?: WithDefault<boolean, true>;
561
561
  /**
562
562
  * If `false` compass won't be displayed on the map.
563
563
  *
@@ -565,7 +565,7 @@ export interface MapFabricNativeProps extends ViewProps {
565
565
  * @platform iOS: Supported
566
566
  * @platform Android: Supported
567
567
  */
568
- showsCompass?: boolean;
568
+ showsCompass?: WithDefault<boolean, true>;
569
569
  /**
570
570
  * A Boolean indicating whether indoor level picker should be enabled.
571
571
  *
@@ -581,7 +581,7 @@ export interface MapFabricNativeProps extends ViewProps {
581
581
  * @platform iOS: Google Maps only
582
582
  * @platform Android: Supported
583
583
  */
584
- showsIndoors?: boolean;
584
+ showsIndoors?: WithDefault<boolean, true>;
585
585
  /**
586
586
  * If `false` hide the button to move map to the current user's location.
587
587
  *
@@ -589,7 +589,7 @@ export interface MapFabricNativeProps extends ViewProps {
589
589
  * @platform iOS: Google Maps only
590
590
  * @platform Android: Supported
591
591
  */
592
- showsMyLocationButton?: boolean;
592
+ showsMyLocationButton?: WithDefault<boolean, true>;
593
593
  /**
594
594
  * If `false` points of interest won't be displayed on the map.
595
595
  * TODO: DEPRECATED? Doesn't seem to do anything
@@ -689,7 +689,7 @@ export interface MapFabricNativeProps extends ViewProps {
689
689
  * @platform iOS: Supported
690
690
  * @platform Android: Supported
691
691
  */
692
- zoomEnabled?: boolean;
692
+ zoomEnabled?: WithDefault<boolean, true>;
693
693
  /**
694
694
  * If `false` the user won't be able to double tap to zoom the map.
695
695
  * **Note:** But it will greatly decrease delay of tap gesture recognition.
@@ -698,7 +698,7 @@ export interface MapFabricNativeProps extends ViewProps {
698
698
  * @platform iOS: Google Maps only
699
699
  * @platform Android: Not supported
700
700
  */
701
- zoomTapEnabled?: boolean;
701
+ zoomTapEnabled?: WithDefault<boolean, true>;
702
702
  }
703
703
  export interface NativeCommands {
704
704
  animateToRegion: (viewRef: React.ElementRef<React.ComponentType>, regionJSON: string, duration: Int32) => void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
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.21.0-alpha.27",
8
+ "version": "1.21.0-alpha.28",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",