Skip to content

feat: add holes support to Polygon component#38

Merged
lodev09 merged 4 commits intomainfrom
feat/polygon-holes
Mar 4, 2026
Merged

feat: add holes support to Polygon component#38
lodev09 merged 4 commits intomainfrom
feat/polygon-holes

Conversation

@lodev09
Copy link
Collaborator

@lodev09 lodev09 commented Mar 4, 2026

Summary

  • Add holes prop (Coordinate[][]) to Polygon for rendering interior cutouts
  • Threads hole data through Codegen spec → native (iOS/Android) → web
  • Fixes Apple Maps hit-testing to exclude hole areas using even-odd fill rule
  • Updates example app with a donut polygon

Type of Change

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

Test Plan

  • Verified polygon with hole renders correctly on iOS (Apple Maps)
  • Tapping inside the hole does NOT trigger onPress
  • Tapping the polygon fill area triggers onPress

Checklist

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

lodev09 added 4 commits March 5, 2026 02:08
Add `holes` prop to Polygon for rendering interior cutouts. Threads
coordinate arrays through Codegen, iOS (Apple Maps + Google Maps),
Android, and web. Fixes Apple Maps hit-testing to exclude hole areas
using even-odd fill rule.
@lodev09 lodev09 merged commit 769683f into main Mar 4, 2026
3 checks passed
@lodev09 lodev09 deleted the feat/polygon-holes branch March 4, 2026 18:39
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