Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mapview.md #866

Merged
merged 2 commits into from
Dec 7, 2016
Merged

Update mapview.md #866

merged 2 commits into from
Dec 7, 2016

Conversation

dccarmo
Copy link
Contributor

@dccarmo dccarmo commented Dec 7, 2016

@@ -57,7 +57,7 @@
| `animateToCoordinate` | `region: Coordinate`, `duration: Number` |
| `fitToElements` | `animated: Boolean` |
| `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.
| `fitToCoordinates` | `coordinates: Array<LatLng>, edgePadding: EdgePadding, animated: Boolean` |
| `fitToCoordinates` | `coordinates: Array<LatLng>, arguments: { edgePadding: EdgePadding, animated: Boolean }` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think calling it options instead of arguments would make more sense

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, updated.

@gilbox gilbox merged commit 6eb1832 into react-native-maps:master Dec 7, 2016
@gilbox
Copy link
Contributor

gilbox commented Dec 7, 2016

thanks @dccarmo !

Exilz pushed a commit to archriss/react-native-maps that referenced this pull request Dec 9, 2016
* 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants