Skip to content

Commit c16eca0

Browse files
committed
fix: forward lockBounds to animateToBounds
1 parent 22548e4 commit c16eca0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class RNGoogleMapsPlusView(
486486
bounds.toLatLngBounds(),
487487
padding = padding?.toInt() ?: 0,
488488
durationMs?.toInt() ?: 3000,
489-
lockBounds = false,
489+
lockBounds = lockBounds ?: false,
490490
)
491491
}
492492

ios/RNGoogleMapsPlusView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ final class RNGoogleMapsPlusView: HybridRNGoogleMapsPlusViewSpec {
425425
bounds.toCoordinateBounds(),
426426
padding: padding ?? 0,
427427
durationMs: durationMs ?? 3000,
428-
lockBounds: false
428+
lockBounds: lockBounds ?? false
429429
)
430430
}
431431

0 commit comments

Comments
 (0)