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;