From 9002bc7d48d5174b20f3f86f3cffa2d7e1847d10 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Wed, 2 Sep 2026 13:29:42 -0400 Subject: [PATCH] feat: show native build number in Settings --- app/(tabs)/settings.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/(tabs)/settings.tsx b/app/(tabs)/settings.tsx index 2f3d8a7..a54c70c 100644 --- a/app/(tabs)/settings.tsx +++ b/app/(tabs)/settings.tsx @@ -30,6 +30,9 @@ export default function SettingsScreen() { const { units, hikeReminders, offlineMaps, setUnits, setHikeReminders, setOfflineMaps } = useSettingsStore(); const { data: count, isPending: countPending } = useHikeCount(); + const version = Constants.expoConfig?.version ?? '1.0.0'; + const buildVersion = + Constants.platform?.ios?.buildNumber ?? Constants.platform?.android?.versionCode; const reset = useMutation({ mutationFn: async () => { @@ -152,7 +155,7 @@ export default function SettingsScreen() { - {Constants.expoConfig?.version ?? '1.0.0'} + {buildVersion ? `${version} (${buildVersion})` : version}