trails/apps/mobile
Ullrich Schäfer 7e302b1fbe
Upgrade @maplibre/maplibre-react-native from 10 to 11
v11 is a breaking API rework (renamed components, restructured props,
event payloads on nativeEvent) and requires React Native's new
architecture. Doing it as a manual migration instead of taking
dependabot's #268 because the renames need code changes.

Changes in apps/mobile:

- RouteMap.tsx — switch to named imports; rename MapView→Map,
  ShapeSource→GeoJSONSource (with shape→data), LineLayer→Layer
  (with type="line" and paint instead of style), MarkerView→
  ViewAnnotation (with coordinate→lngLat); Camera uses
  initialViewState with bounds as [w,s,e,n] and a separate padding
  object; onLongPress reads lngLat from event.nativeEvent.

- app.config.ts — set `newArchEnabled: true`. MapLibre RN v11
  supports only the new architecture, so Fabric/TurboModules must
  be on for the Expo prebuild. Cast the config type since Expo SDK
  55's ExpoConfig typings don't yet include the field (the runtime
  does).

- package.json — `^10.4.2` → `^11.0.0`.

Supersedes dependabot #268; it'll auto-close once this merges.

Runtime verification requires an EAS dev build (native deps
changed + new arch flipped). JS-only surface typechecks + lints +
unit tests clean locally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 12:09:06 +02:00
..
app Fix Android emulator dev server: use 10.0.2.2 instead of localhost 2026-04-15 01:22:50 +02:00
assets Initialize Expo mobile app with tab navigation and monorepo support 2026-04-12 23:05:57 +02:00
lib Upgrade @maplibre/maplibre-react-native from 10 to 11 2026-04-19 12:09:06 +02:00
.gitignore Add local build scripts via Expo CNG/prebuild 2026-04-15 01:19:37 +02:00
app.config.ts Upgrade @maplibre/maplibre-react-native from 10 to 11 2026-04-19 12:09:06 +02:00
eas.json Enable Sentry source map upload in EAS builds 2026-04-13 02:12:36 +02:00
index.ts Initialize Expo mobile app with tab navigation and monorepo support 2026-04-12 23:05:57 +02:00
metro.config.js Add Metro config for monorepo module resolution 2026-04-15 07:39:04 +02:00
package.json Upgrade @maplibre/maplibre-react-native from 10 to 11 2026-04-19 12:09:06 +02:00
tsconfig.json Implement mobile route editor with MapLibre and BRouter routing 2026-04-15 01:06:10 +02:00