feat: 适配 headerbar ios26

This commit is contained in:
richarjiang
2025-10-14 16:31:19 +08:00
parent cf069f3537
commit 435f5cc65c
41 changed files with 493 additions and 5445 deletions

View File

@@ -1,5 +1,6 @@
import { DateSelector } from '@/components/DateSelector';
import { HeaderBar } from '@/components/ui/HeaderBar';
import { useSafeAreaTop } from '@/hooks/useSafeAreaWithPadding';
import { getMonthDaysZh, getTodayIndexInMonth } from '@/utils/date';
import { fetchHourlyStepSamples, fetchStepCount, HourlyStepData } from '@/utils/health';
import { logger } from '@/utils/logger';
@@ -16,6 +17,8 @@ import {
} from 'react-native';
export default function StepsDetailScreen() {
const safeAreaTop = useSafeAreaTop()
// 获取路由参数
const { date } = useLocalSearchParams<{ date?: string }>();
@@ -213,7 +216,9 @@ export default function StepsDetailScreen() {
<ScrollView
style={styles.scrollView}
contentContainerStyle={{}}
contentContainerStyle={{
paddingTop: safeAreaTop
}}
showsVerticalScrollIndicator={false}
>
{/* 日期选择器 */}