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

28 lines
983 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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>
);
}