Files
multica/apps/mobile/package.json
Naiyuan Qing f5dbcad533 feat(mobile): settings — profile + notifications subscreens, RNR primitives, API helpers
Settings page rewritten to use RNR primitives (RadioGroup, Switch,
Avatar, Separator) instead of self-drawn equivalents, removes 3
hardcoded #71717a hex colors in favor of THEME tokens, and adds
Alert.alert confirmation on sign-out with destructive Button variant.

Two new push subscreens under more/settings/:
  - profile.tsx     edits name + avatar. Avatar tap opens iOS native
                    ActionSheetIOS (Take Photo / Library / Remove) via
                    expo-image-picker, then PATCH /api/me.
  - notifications.tsx  5 inbox groups + system_notifications toggle,
                       backed by optimistic PUT /api/notification-preferences.

New mobile-owned query + mutation for notification preferences mirror
the web design (no runtime import — per CLAUDE.md "Mobile-owned
updaters"). auth-store gets setUser action for in-memory user update
after profile PATCH.

ApiClient gains fetchValidated + fetchValidatedWith private helpers
that collapse the fetch+parseWithFallback envelope. 4 settings-related
methods migrated as canary (getMe, updateMe, getNotificationPreferences,
updateNotificationPreferences); remaining 30+ read methods migrate
progressively in later PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 14:34:43 +08:00

76 lines
2.5 KiB
JSON

{
"name": "@multica/mobile",
"version": "0.1.0",
"private": true,
"main": "expo-router/entry",
"scripts": {
"dev": "expo start",
"dev:staging": "dotenv -e .env.staging -- cross-env APP_ENV=staging expo start",
"ios:device": "expo run:ios --device",
"ios:device:staging": "dotenv -e .env.staging -- cross-env APP_ENV=staging expo run:ios --device",
"ios:device:staging:release": "dotenv -e .env.staging -- cross-env APP_ENV=staging expo run:ios --device --configuration Release",
"lint": "expo lint",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-community/datetimepicker": "8.6.0",
"@react-native-community/netinfo": "11.5.2",
"@react-navigation/elements": "^2.9.17",
"@rn-primitives/avatar": "^1.4.0",
"@rn-primitives/portal": "^1.4.0",
"@rn-primitives/radio-group": "^1.4.0",
"@rn-primitives/separator": "^1.4.0",
"@rn-primitives/slot": "^1.4.0",
"@rn-primitives/switch": "^1.4.0",
"@shikijs/core": "^4.0.2",
"@shikijs/langs": "^4.0.2",
"@shikijs/themes": "^4.0.2",
"@tanstack/react-query": "^5.96.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"expo": "~55.0.23",
"expo-build-properties": "~55.0.13",
"expo-clipboard": "~55.0.13",
"expo-constants": "~55.0.16",
"expo-dev-client": "^55.0.32",
"expo-document-picker": "~55.0.13",
"expo-haptics": "~55.0.14",
"expo-image": "^55.0.10",
"expo-image-picker": "~55.0.20",
"expo-linking": "~55.0.0",
"expo-router": "~55.0.14",
"expo-secure-store": "~55.0.13",
"expo-status-bar": "~55.0.0",
"expo-system-ui": "~55.0.0",
"input-otp-native": "^0.5.0",
"marked": "^18.0.3",
"nativewind": "^4.1.23",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-native": "0.83.6",
"react-native-enriched-markdown": "^0.5.0",
"react-native-gesture-handler": "~2.30.1",
"react-native-image-viewing": "^0.2.2",
"react-native-reanimated": "~4.2.1",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.23.0",
"react-native-shiki-engine": "^0.3.10",
"react-native-svg": "15.15.3",
"react-native-web": "~0.21.0",
"react-native-worklets": "0.7.4",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"zod": "^4.1.5",
"zustand": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.25.0",
"@types/react": "~19.0.0",
"cross-env": "^7.0.3",
"dotenv-cli": "^7.4.4",
"eslint-config-expo": "~55.0.0",
"typescript": "~5.9.0"
}
}