Routes tab (Phase 3.1): - Paginated FlatList fetching from Journal REST API - Route cards with name, distance (km), elevation gain, day count - Pull-to-refresh, loading spinner, error state with retry, empty state - Safe area insets for notch and tab bar API client: - Import types from @trails-cool/api instead of hand-written interfaces - Parse list/detail responses through Zod schemas at runtime - Add zod as mobile app dependency i18n: - Add mobile namespace (en + de) for routes, activities, profile, login Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"name": "@trails-cool/mobile",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"main": "index.ts",
|
|
"scripts": {
|
|
"start": "expo start",
|
|
"android": "expo start --android",
|
|
"ios": "expo start --ios",
|
|
"web": "expo start --web",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "jest",
|
|
"lint": "eslint ."
|
|
},
|
|
"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": {
|
|
"@trails-cool/api": "workspace:*",
|
|
"@trails-cool/gpx": "workspace:*",
|
|
"@trails-cool/i18n": "workspace:*",
|
|
"@trails-cool/map-core": "workspace:*",
|
|
"@trails-cool/types": "workspace:*",
|
|
"expo": "~55.0.14",
|
|
"expo-crypto": "~55.0.14",
|
|
"expo-router": "~55.0.12",
|
|
"expo-secure-store": "~55.0.13",
|
|
"expo-status-bar": "~55.0.5",
|
|
"expo-web-browser": "~55.0.14",
|
|
"react": "19.2.0",
|
|
"react-native": "0.83.4",
|
|
"react-native-safe-area-context": "~5.6.2",
|
|
"react-native-screens": "~4.23.0",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react-native": "^13.3.3",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/react": "~19.2.14",
|
|
"jest-expo": "^55.0.15",
|
|
"typescript": "~5.9.2"
|
|
}
|
|
}
|