From 185cf3e75fb947634530ef7ee5c2085fd8a2e414 Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Thu, 10 Oct 2024 11:18:24 +0200 Subject: [PATCH] fix: make MarkerView props with defaults optional (#460) * fix: make MarkerView props with defaults optional * chore: add changelog * chore: add linkt to pr in changelog * chore: add missing brace in changelog --- CHANGELOG.md | 1 + javascript/components/MarkerView.tsx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dba966abe..6f452f950 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ PR Title ([#123](link to my pr)) ``` +fix: make MarkerView props with defaults optional ([#460](https://github.com/maplibre/maplibre-react-native/pull/460)) fix: updated Mapbox callstack check for iOS custom headers to check for MapLibre instead [#461](https://github.com/maplibre/maplibre-react-native/pull/461) ## 10.0.0-alpha.17 diff --git a/javascript/components/MarkerView.tsx b/javascript/components/MarkerView.tsx index 60cbd5a90..6330125b2 100644 --- a/javascript/components/MarkerView.tsx +++ b/javascript/components/MarkerView.tsx @@ -20,7 +20,7 @@ interface MarkerViewProps extends ViewProps { * Note this is only for custom annotations not the default pin view. * Defaults to the center of the view. */ - anchor: { + anchor?: { /** * `x` of anchor */ @@ -30,8 +30,8 @@ interface MarkerViewProps extends ViewProps { */ y: number; }; - allowOverlap: boolean; - isSelected: boolean; + allowOverlap?: boolean; + isSelected?: boolean; /** * Expects one child - can be container with multiple elements */