Skip to content

Update mapview.md#866

Merged
gilbox merged 2 commits intoreact-native-maps:masterfrom
dccarmo:patch-1
Dec 7, 2016
Merged

Update mapview.md#866
gilbox merged 2 commits intoreact-native-maps:masterfrom
dccarmo:patch-1

Conversation

@dccarmo
Copy link
Copy Markdown

@dccarmo dccarmo commented Dec 7, 2016

docs/mapview.md Outdated
| `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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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'
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
* 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