From 47dd1523272b32ba86f182147f987ca71f890293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Fri, 22 May 2026 16:08:31 +0800 Subject: [PATCH] fix!: change the fabric defaults to match the native sdks --- ios/react-native-navigation-sdk/NavView.mm | 9 +++++++-- src/native/NativeNavViewComponent.ts | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ios/react-native-navigation-sdk/NavView.mm b/ios/react-native-navigation-sdk/NavView.mm index 8c7a2d66..246b2615 100644 --- a/ios/react-native-navigation-sdk/NavView.mm +++ b/ios/react-native-navigation-sdk/NavView.mm @@ -28,8 +28,13 @@ using namespace facebook::react; -static const std::shared_ptr kDefaultNavViewProps = - std::make_shared(); +static const std::shared_ptr kDefaultNavViewProps = [] { + auto props = std::make_shared(); + // On iOS, Google Maps Navigation SDK has the compass disabled by default. + // The Fabric default is overridden here so initial props match the native SDK behavior. + props->compassEnabled = false; + return std::static_pointer_cast(props); +}(); @interface NavView () diff --git a/src/native/NativeNavViewComponent.ts b/src/native/NativeNavViewComponent.ts index a03da680..ab8ff11c 100644 --- a/src/native/NativeNavViewComponent.ts +++ b/src/native/NativeNavViewComponent.ts @@ -120,7 +120,7 @@ export interface NativeNavViewProps extends ViewProps { headerEnabled?: WithDefault; footerEnabled?: WithDefault; speedometerEnabled?: WithDefault; - speedLimitIconEnabled?: WithDefault; + speedLimitIconEnabled?: WithDefault; recenterButtonEnabled?: WithDefault; reportIncidentButtonEnabled?: WithDefault; navigationViewStylingOptions?: UnsafeMixed;