Skip to content

Support for lineCap and lineDash pattern#2417

Merged
christopherdro merged 10 commits intoreact-native-maps:masterfrom
kruyvanna:master
Mar 8, 2019
Merged

Support for lineCap and lineDash pattern#2417
christopherdro merged 10 commits intoreact-native-maps:masterfrom
kruyvanna:master

Conversation

@kruyvanna
Copy link
Copy Markdown
Contributor

Does any other open PR do the same thing?

Yes. But this one does one more thing which is LineDashPattern
(please answer here)

What issue is this PR fixing?

No issue reported yet.
(please link the issue here)

How did you test this PR?

Tested.

You're welcome

@christopherdro
Copy link
Copy Markdown
Collaborator

@kruyvanna Thanks for the PR. Any chance you can add this information to the docs?

@kruyvanna
Copy link
Copy Markdown
Contributor Author

@christopherdro I updated the docs.


@ReactProp(name = "lineDashPattern")
public void setLineDashPattern(AirMapPolyline view, ReadableArray patternValues) {
Log.i("VANNA", "setLineDash " + patternValues);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kruyvanna Could you remove this log here?

@christopherdro
Copy link
Copy Markdown
Collaborator

christopherdro commented Feb 6, 2019

@kruyvanna Thank you. Just left one more comment to remove a debug log left behind.

@kruyvanna
Copy link
Copy Markdown
Contributor Author

@christopherdro done.

import android.graphics.Color;
import android.os.Build;
import android.util.DisplayMetrics;
import android.util.Log;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kruyvanna please remove this import

once done I'm more than happy to test and merge

@kruyvanna
Copy link
Copy Markdown
Contributor Author

@salah-ghanim done

@christopherdro christopherdro merged commit 4978696 into react-native-maps:master Mar 8, 2019
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
* Android: Fix lineCap of Polyline

* Android: add support for lineDashPattern

* update Polyline docs on lineCap property

* Fix docs: update Polyline docs on lineCap property

* update docs

* remove Log

* remove log
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