Skip to content

feat: add Polygon component#34

Merged
lodev09 merged 6 commits intomainfrom
feat/polygon-support
Feb 21, 2026
Merged

feat: add Polygon component#34
lodev09 merged 6 commits intomainfrom
feat/polygon-support

Conversation

@lodev09
Copy link
Collaborator

@lodev09 lodev09 commented Feb 20, 2026

Summary

Add Polygon component with support for iOS (Apple Maps + Google Maps), Android, and Web. Follows the same pattern as the existing Polyline component.

  • New feature

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Test Plan

  • Render a polygon overlay on the example app Map component
  • Verify polygon renders on iOS (Apple Maps + Google Maps), Android, and Web
  • Verify props: coordinates, strokeColor, strokeWidth, fillColor, zIndex

Screenshots / Videos

Checklist

  • I tested on iOS
  • I tested on Android
  • I tested on Web
  • I updated the documentation (if needed)

Missing entry in codegenConfig.ios.componentProvider prevented
Fabric from instantiating the native polygon view on iOS.
Also update polygon example to render a circle.
Highlight polygon on press-hold with 50% alpha reduction on fill and
stroke colors across iOS (Google Maps, Apple Maps), Android, and Web.
Feedback only activates when onPress is provided via tappable prop.
@lodev09 lodev09 marked this pull request as ready for review February 21, 2026 10:33
@lodev09 lodev09 merged commit 9ce2be3 into main Feb 21, 2026
3 checks passed
@lodev09 lodev09 deleted the feat/polygon-support branch February 21, 2026 10:35
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.

1 participant