-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[android] Add parameter to disable the moving on marker press #676
Conversation
@@ -165,6 +165,11 @@ public void setLoadingEnabled(AirMapView view, boolean loadingEnabled) { | |||
view.enableMapLoading(loadingEnabled); | |||
} | |||
|
|||
@ReactProp(name="moveOnMarkerPress", defaultBoolean = true) | |||
public void setMoveOnMarkerPress(AirMapView view, boolean moveOnPress) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space between =
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify, should I add spaces around the =
or remove it? The other methods in the file use both standards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space around =
. I guess I missed the other props that do the same.
I think the general syntax is to have space in between. Would be great if you can adjust the others to match as well.
LGTM! Small nit pick comment |
@spikebrehm @lelandrichardson LGTM! Thoughts on getting this is? |
Beautiful, thank you! |
LMK if you need me to cut a new release for this. |
Would be great with the commit for react native 0.35. |
On iOS (Apple Maps) clicking a marker doesn't move the map but on Android clicking a marker causes the map to move. This PR adds a property that lets that behavior be disabled.
Test plan (on Android):
Before:
After: