Skip to content

Commit 03f0d03

Browse files
Alvarochristopherdro
authored andcommitted
Improve documentation for fitToCoordinates (react-native-maps#1037)
* added notes for fitToCoordinates call * Notes for fitToCoordinates set in correct box
1 parent 0dfcb26 commit 03f0d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/mapview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
|---|---|---|
5858
| `animateToRegion` | `region: Region`, `duration: Number` |
5959
| `animateToCoordinate` | `coordinate: LatLng`, `duration: Number` |
60-
| `fitToElements` | `animated: Boolean` |
60+
| `fitToElements` | `animated: Boolean` |
6161
| `fitToSuppliedMarkers` | `markerIDs: String[]`, `animated: Boolean` | If you need to use this in `ComponentDidMount`, make sure you put it in a timeout or it will cause performance problems.
62-
| `fitToCoordinates` | `coordinates: Array<LatLng>, options: { edgePadding: EdgePadding, animated: Boolean }` |
62+
| `fitToCoordinates` | `coordinates: Array<LatLng>, options: { edgePadding: EdgePadding, animated: Boolean }` | If called in `ComponentDidMount` in android, it will cause an exception. It is recommended to call it from the MapView `onLayout` event.
6363

6464

6565

0 commit comments

Comments
 (0)