diff --git a/app/(tabs)/activity.tsx b/app/(tabs)/activity.tsx index 97cfa25..1b5954c 100644 --- a/app/(tabs)/activity.tsx +++ b/app/(tabs)/activity.tsx @@ -1,9 +1,26 @@ import { ThemedView } from "@/components/themed-view"; -import { Text } from "react-native"; +import { Text, SafeAreaView, StyleSheet } from "react-native"; export default function ActivityScreen() { return ( - 活动 + // SafeAreaView 适配顶部刘海 + / + 活动 + ) } - \ No newline at end of file + +const styles = StyleSheet.create({ + safeAreaContainer: { + // 确保 SafeAreaView 占据整个屏幕 + flex: 1, + // 您可能还需要在这里设置背景颜色,以确保状态栏区域的颜色正确 + backgroundColor: 'pink' + }, + + + + + + +}); \ No newline at end of file