Skip to content

Commit 9050606

Browse files
bealqiuclaude
andcommitted
fix(feedback): use dynamic app version on mobile
Replace hardcoded "1.2.1" with Constants.expoConfig.version in the mobile feedback screen, matching the same fix on desktop. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6afc0cc commit 9050606

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/app-expo/src/screens/settings/FeedbackScreen.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { Bug, Check, Lightbulb, MessageSquare } from "lucide-react-native";
2222
import type { LucideIcon } from "lucide-react-native";
2323
import { useCallback, useEffect, useMemo, useState } from "react";
2424
import { useTranslation } from "react-i18next";
25+
import Constants from "expo-constants";
2526
import {
2627
ActivityIndicator,
2728
Alert,
@@ -118,7 +119,7 @@ function SubmitTab({ colors, t, locale }: FeedbackTabProps & { locale: string })
118119
collectDeviceInfo({
119120
platform: Platform.OS as DeviceInfo["platform"],
120121
osVersion: `${Platform.OS} ${Platform.Version}`,
121-
appVersion: "1.2.1", // TODO: dynamic
122+
appVersion: Constants.expoConfig?.version ?? "unknown",
122123
locale,
123124
}),
124125
[locale],

0 commit comments

Comments
 (0)