feat(settings): display native app version using expo-application
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { View, Text, Pressable } from "react-native";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import * as Application from "expo-application";
|
||||
import { useSettings } from "../../../providers/WatchProvider";
|
||||
import { LanguagePicker } from "../components/LanguagePicker";
|
||||
|
||||
@@ -37,7 +38,7 @@ export function SettingsScreen() {
|
||||
</View>
|
||||
|
||||
<View className="border-t border-slate-200 pt-4 mt-2">
|
||||
<Text className="text-sm text-slate-400">{t("version")}</Text>
|
||||
<Text className="text-sm text-slate-400">SwimBuddy v{Application.nativeApplicationVersion}</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user