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>
79 lines
2.4 KiB
JSON
79 lines
2.4 KiB
JSON
{
|
|
"name": "@trails-cool/mobile",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"main": "index.ts",
|
|
"expo": {
|
|
"install": {
|
|
"exclude": [
|
|
"react"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"start": "expo start --dev-client",
|
|
"prebuild": "expo prebuild",
|
|
"prebuild:clean": "expo prebuild --clean",
|
|
"ios": "expo run:ios",
|
|
"android": "expo run:android",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "jest",
|
|
"lint": "eslint .",
|
|
"eas:dev": "npx eas-cli build:dev --platform ios",
|
|
"eas:preview": "npx eas-cli build --profile preview --platform all"
|
|
},
|
|
"jest": {
|
|
"preset": "jest-expo",
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@trails-cool/.*))"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@expo/metro-runtime": "^55.0.9",
|
|
"@gorhom/bottom-sheet": "^5.2.9",
|
|
"@maplibre/maplibre-react-native": "^11.0.0",
|
|
"@sentry/cli": "^3.3.5",
|
|
"@sentry/react-native": "~7.11.0",
|
|
"@trails-cool/api": "workspace:*",
|
|
"@trails-cool/gpx": "workspace:*",
|
|
"@trails-cool/i18n": "workspace:*",
|
|
"@trails-cool/map-core": "workspace:*",
|
|
"@trails-cool/sentry-config": "workspace:*",
|
|
"@trails-cool/types": "workspace:*",
|
|
"expo": "~55.0.15",
|
|
"expo-constants": "~55.0.14",
|
|
"expo-crypto": "~55.0.14",
|
|
"expo-dev-client": "~55.0.27",
|
|
"expo-dev-menu": "^55.0.23",
|
|
"expo-device": "~55.0.15",
|
|
"expo-file-system": "~55.0.16",
|
|
"expo-linking": "~55.0.13",
|
|
"expo-localization": "~55.0.13",
|
|
"expo-location": "~55.1.8",
|
|
"expo-navigation-bar": "~55.0.12",
|
|
"expo-notifications": "~55.0.19",
|
|
"expo-router": "~55.0.12",
|
|
"expo-secure-store": "~55.0.13",
|
|
"expo-splash-screen": "~55.0.18",
|
|
"expo-sqlite": "~55.0.15",
|
|
"expo-status-bar": "~55.0.5",
|
|
"expo-system-ui": "^55.0.15",
|
|
"expo-web-browser": "~55.0.14",
|
|
"react": "catalog:",
|
|
"react-native": "0.83.4",
|
|
"react-native-gesture-handler": "^2.31.1",
|
|
"react-native-reanimated": "^4.3.0",
|
|
"react-native-safe-area-context": "~5.6.2",
|
|
"react-native-screens": "~4.23.0",
|
|
"use-latest-callback": "^0.3.3",
|
|
"zod": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react-native": "^13.3.3",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/react": "~19.2.14",
|
|
"jest-expo": "^55.0.15",
|
|
"react-test-renderer": "^19.2.5",
|
|
"typescript": "~5.9.2"
|
|
}
|
|
}
|