react-native-maps 1.0.2 → 1.0.3

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.
@@ -801,7 +801,11 @@ public class AirMapView extends MapView implements GoogleMap.InfoWindowAdapter,
801
801
 
802
802
  public void animateToRegion(LatLngBounds bounds, int duration) {
803
803
  if (map == null) return;
804
- map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), duration, null);
804
+ if(duration <= 0) {
805
+ map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
806
+ } else {
807
+ map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), duration, null);
808
+ }
805
809
  }
806
810
 
807
811
  public void fitToElements(ReadableMap edgePadding, boolean animated) {
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.0.2",
8
+ "version": "1.0.3",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",