react-native-maps 1.1.0-beta.2 → 1.1.0-beta.5

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.
@@ -829,7 +829,11 @@ public class AirMapView extends MapView implements GoogleMap.InfoWindowAdapter,
829
829
 
830
830
  public void animateToRegion(LatLngBounds bounds, int duration) {
831
831
  if (map == null) return;
832
- map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), duration, null);
832
+ if(duration <= 0) {
833
+ map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
834
+ } else {
835
+ map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), duration, null);
836
+ }
833
837
  }
834
838
 
835
839
  public void fitToElements(ReadableMap edgePadding, boolean animated) {
@@ -22,7 +22,7 @@
22
22
  @property (nonatomic, assign) MKCoordinateRegion initialRegion;
23
23
  @property (nonatomic, assign) MKCoordinateRegion region;
24
24
  @property (nonatomic, assign) GMSCameraPosition *cameraProp; // Because the base class already has a "camera" prop.
25
- @property (nonatomic, assign) GMSCameraPosition *initialCamera;
25
+ @property (nonatomic, strong) GMSCameraPosition *initialCamera;
26
26
  @property (nonatomic, assign) NSString *customMapStyleString;
27
27
  @property (nonatomic, assign) UIEdgeInsets mapPadding;
28
28
  @property (nonatomic, assign) NSString *paddingAdjustmentBehaviorString;
@@ -84,7 +84,7 @@ export declare type MapPressEvent = ClickEvent<{
84
84
  /**
85
85
  * @platform Android
86
86
  */
87
- action?: 'press';
87
+ action?: 'press' | 'marker-press';
88
88
  }>;
89
89
  export declare type Details = {
90
90
  isGesture?: boolean;
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.1.0-beta.2",
8
+ "version": "1.1.0-beta.5",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",