From 1c9a4c7aa9a43ad1b1b73fd93caed3868368c282 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 23:18:25 +0000 Subject: [PATCH 1/2] Initial plan From 60a4e241c7323fea21dea4639d55a77478d638ae Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 23:23:16 +0000 Subject: [PATCH 2/2] Fix rotateEnabled={false} not disabling rotation on iOS Use WithDefault for rotateEnabled, zoomEnabled, scrollEnabled, and pitchEnabled in the Fabric spec. This ensures the Codegen-generated C++ Props struct defaults these fields to true, matching the Objective-C initialization in LuggMapView.mm. Previously, with plain `boolean` (C++ default: false), setting any of these props to false on initial render would not be detected as a change (false != false), leaving the ObjC cached value as YES and thus keeping the gesture enabled. Agent-Logs-Url: https://github.com/dacoto/maps/sessions/a1861844-41b6-489b-ae7c-8e8d1488182c Co-authored-by: dacoto <16915053+dacoto@users.noreply.github.com> --- src/fabric/LuggMapViewNativeComponent.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fabric/LuggMapViewNativeComponent.ts b/src/fabric/LuggMapViewNativeComponent.ts index 2cde059..74c1ecf 100644 --- a/src/fabric/LuggMapViewNativeComponent.ts +++ b/src/fabric/LuggMapViewNativeComponent.ts @@ -71,10 +71,10 @@ export interface NativeProps extends ViewProps { initialZoom?: Double; minZoom?: Double; maxZoom?: Double; - zoomEnabled?: boolean; - scrollEnabled?: boolean; - rotateEnabled?: boolean; - pitchEnabled?: boolean; + zoomEnabled?: WithDefault; + scrollEnabled?: WithDefault; + rotateEnabled?: WithDefault; + pitchEnabled?: WithDefault; edgeInsets?: EdgeInsets; userLocationEnabled?: boolean; userLocationButtonEnabled?: boolean;