Skip to content

Native map has been black in every iOS release: light/dark styles are Mapbox Standard, the bundled SDK is v10 #765

Open

Description

@thinkclay

Found on the native iPad pass for #373, but it is not an iPad bug — it is every iOS device, in every release.

What ships

packages/scf-core/features/discover/components/map/mapboxStyleConfig.ts set the light map style to mapbox://styles/mapbox/standard in fe152b16f (2026-03-13), and the dark style to a Scaffald custom style that imports Standard. Both need Mapbox Maps SDK v11. The native app bundles MapboxMaps 10.19.5 (@rnmapbox/maps ~10.1.45, apps/scaffald/ios/Podfile.lock:387).

On v10 the style request answers 200 — the token is valid, the style exists — and the SDK then paints nothing: a black map with the marker annotations floating on it. Verified on the iPad Pro simulator, and reproduced the other way: swapping the light style for mapbox/streets-v12 alone made the same screen render normally, with no other change.

git tag --contains fe152b16f is every app tag from app-v1.0.1 through app-v1.17.1. So the Workers map — a headline feature, and the one screen in the Play listing's feature graphic — has been black in every TestFlight build for six months, including the one currently submitted. Nobody caught it because #686/#694 were about the token reaching the build, and a token that reaches the build makes the style request succeed; the failure is after that.

Web is unaffected: MapAdapter.web.tsx uses mapbox-gl JS v3, which renders Standard.

Fix landed (native uses classic styles)

The PR closing #373 adds NATIVE_MAP_STYLE_CONFIG — streets-v12 light, dark-v11 dark — and MapAdapter.native.tsx reads that; web keeps Standard. Verified rendering on the iPad Pro in both appearances. That is the safe change for the release in flight.

What this issue tracks: the real fix

Move @rnmapbox/maps to the Mapbox v11 SDK so native gets the same Standard style as web (3D buildings, the lightPreset config getStandardStyleConfig() already computes for web, the Scaffald custom dark style):

  • RNMapboxMapsVersion: "11.x" in the Expo plugin config (apps/scaffald/app.config.ts ~line 430) — needs the sk. downloads token the build already has (fix(build): the Mapbox download token must not fall back to the public one #694)
  • @rnmapbox/maps to a version that supports v11 (10.1.x does with the flag; check the 10.1.45 → 10.2 notes)
  • Then drop NATIVE_MAP_STYLE_CONFIG and let native read MAP_STYLE_CONFIG again
  • A native build + a real-device check of the map in both appearances before it ships — this class of bug does not fail a build, a typecheck, or a web sweep

Per #483 this is a coordinated native bump, not a Dependabot PR.

Acceptance

  • Native map renders Mapbox Standard (light) and the Scaffald dark style, verified on a device or simulator screenshot attached to the PR
  • NATIVE_MAP_STYLE_CONFIG removed
  • docs/agents/RELEASE-PROCESS.md gains a line in the pre-submit checklist: open the Workers map on a device before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmobilepriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions