[iOS][New Arch] Marker titleVisibility can never show a title — 'adaptive' collapses to hidden, 'visible' is never applied

Author: da-maskCreated Sep 30, 2026Updated Sep 30, 2026

Summary

On the new architecture (Fabric), a <Marker title="…" titleVisibility="…"> on Apple Maps never renders the title beneath the MKMarkerAnnotationView, whatever titleVisibility is set to. Only the callout shows the title, on tap.

Two independent defects combine:

  1. ios/AirMaps/AIRMapMarker.m (getAnnotationView):
    objc
    _markerView.titleVisibility = self.titleVisibility ?: MKFeatureVisibilityHidden;
    _markerView.subtitleVisibility = self.subtitleVisibility ?: MKFeatureVisibilityHidden;
    MKFeatureVisibilityAdaptive is 0 (MapKit MKTypes.h: Adaptive, Hidden, Visible), so ?: turns adaptive into Hidden.
  2. ios/AirMaps/RNMapsMarkerView.mm (updateProps) forwards a prop only when newViewProps.titleVisibility != oldViewProps.titleVisibility. The codegen default is 'visible' (src/specs/NativeComponentMarker.ts: WithDefault<AppleMarkerVisibility, 'visible'>), so titleVisibility="visible" — or leaving it unset — never reaches AIRMapMarker; its ivar stays 0, and defect 1 hides it.

Net: adaptive → hidden, visible → hidden, unset → hidden. Only hidden behaves as documented.

Reproducible sample code

typescript
import React from 'react';
import MapView, { Marker, PROVIDER_DEFAULT } from 'react-native-maps';

export default function App() {
  return (
    <MapView
      style={{ flex: 1 }}
      provider={PROVIDER_DEFAULT}
      initialRegion={{ latitude: -33.87, longitude: 151.21, latitudeDelta: 0.05, longitudeDelta: 0.05 }}>
      <Marker coordinate={{ latitude: -33.87, longitude: 151.21 }} title="Visible title" titleVisibility="visible" />
      <Marker coordinate={{ latitude: -33.88, longitude: 151.22 }} title="Adaptive title" titleVisibility="adaptive" />
    </MapView>
  );
}

Steps to reproduce

  1. Run the sample on iOS with the new architecture enabled (Apple Maps provider).
  2. Look at the two markers.

Expected result

The title text is drawn beneath each balloon (always for visible; when there is room for adaptive).

Actual result

No title under either marker. Tapping a marker shows the title in the callout only.

React Native Maps Version

1.27.2 — the lines are unchanged on master at 1.29.11.

What platforms are you seeing the problem on?

iOS (Apple Maps)

React Native Version

0.86.3

What version of Expo are you using?

SDK 57.0.25

Device(s)

iPhone 17 simulator (iOS 26), iPhone 11 (iOS 26)

Additional information

Fix: initialise the ivars to the codegen defaults in initWithFrame: and assign them without the ?: fallback. Verified in an Expo SDK 57 app via patch-package: titles render, and with adaptive MapKit hides colliding titles in a dense cluster and keeps them on spaced markers. PR to follow. Note 2.0 (beta) has no titleVisibility prop (ios/Maps/RNMMapMarker.m hard-codes Hidden), so this concerns the 1.x line.

Source: react-native-maps/react-native-maps