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

Implemented scrollDuringRotateOrZoom control for Google Maps #3784

Merged

Conversation

lukasz-app
Copy link
Contributor

Does any other open PR do the same thing?

No

What issue is this PR fixing?

This PR exposes the native functionality of GoogleMaps to enable/disable moving the map while rotating or zooming.
The default behavior is to allow this, but I needed to disable it in my project.

This PR might fix:
#2572

How did you test this PR?

I tested this in the example project and in another one as well, by linking it in package.json to my fork of this library.
I tested both platforms, on physical devices

Steps to test:

  1. Include my fork in package.json in your project
    "react-native-maps": "https://github.com/lukaszchopin/react-native-maps.git#scrollDuringRotateOrZoom"
  2. Check whether changing scrollDuringRotateOrZoomEnabled to false disables possibility to move map while rotating or zooming:
    <MapView scrollDuringRotateOrZoomEnabled={false} />

docs/mapview.md Outdated Show resolved Hide resolved
@christopherdro christopherdro merged commit ebb13b5 into react-native-maps:master Apr 20, 2021
@LaurenceM10NS
Copy link

Same issue here with latest version. I tried in android only.

borjomemost pushed a commit to borjomemost/react-native-maps that referenced this pull request May 6, 2022
…ative-maps#3784)

* implemented scrollDuringRotateOrZoom control

* fix lint issue

* note in docs
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.

3 participants