Files
life-echo/app-expo/src/app/(main)/about.tsx

28 lines
983 B
TypeScript
Raw Normal View History

import Constants from 'expo-constants';
import React from 'react';
import { View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { Text } from '@/components/ui/text';
import { ScreenHeader } from '@/components/screen-header';
export default function AboutScreen() {
const version = Constants.expoConfig?.version ?? '1.0.0';
return (
<View className="flex-1 bg-background">
<ScreenHeader title="关于" />
<SafeAreaView className="flex-1 items-center justify-center gap-4 px-6">
<Text variant="h2" className="text-foreground">
</Text>
<Text className="text-muted-foreground">Life Echo</Text>
<Text className="text-sm text-muted-foreground"> {version}</Text>
<Text className="mt-8 text-center text-sm leading-5 text-muted-foreground">
</Text>
</SafeAreaView>
</View>
);
}