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

Allow fitToCoordinates to be called without options parameter #1817

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Conversation

bramus
Copy link
Contributor

@bramus bramus commented Nov 23, 2017

Right now it's not possible to call fitToCoordinates without an options parameter, even though defaults are defined in the function body.

This commit set the default value of the options parameter of to an empty object, allowing one to call the function without it (and with respect for the defaults).

Right now it's not possible to call `fitToCoordinates` without an `options` parameter, even though defaults are defined in the function body. This commit set the default value of the `options` parameter of  to an empty object, allowing one to call the function without it _(and with respect for the defaults)_.
@christopherdro christopherdro merged commit 1c47c65 into react-native-maps:master Nov 28, 2017
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