Skip to content

Allow fitToCoordinates to be called without options parameter#1817

Merged
christopherdro merged 1 commit intoreact-native-maps:masterfrom
bramus:patch-1
Nov 28, 2017
Merged

Allow fitToCoordinates to be called without options parameter#1817
christopherdro merged 1 commit intoreact-native-maps:masterfrom
bramus:patch-1

Conversation

@bramus
Copy link
Copy Markdown
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
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
…native-maps#1817)

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)_.
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