Skip to content

Commit 87811f4

Browse files
Diogo do Carmogilbox
authored andcommitted
Update mapview.md (react-native-maps#866)
* Update mapview.md Updated documentation to match the example here (https://github.com/airbnb/react-native-maps/blob/master/example/examples/FitToCoordinates.js) * Changed name from 'arguments' to 'options'
1 parent 08cc6e4 commit 87811f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mapview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
| `animateToCoordinate` | `region: Coordinate`, `duration: Number` |
5858
| `fitToElements` | `animated: Boolean` |
5959
| `fitToSuppliedMarkers` | `markerIDs: String[]` | If you need to use this in `ComponentDidMount`, make sure you put it in a timeout or it will cause performance problems.
60-
| `fitToCoordinates` | `coordinates: Array<LatLng>, edgePadding: EdgePadding, animated: Boolean` |
60+
| `fitToCoordinates` | `coordinates: Array<LatLng>, options: { edgePadding: EdgePadding, animated: Boolean }` |
6161

6262

6363

0 commit comments

Comments
 (0)