feat: 抽离 imaghe 组件,为图片增加 header

This commit is contained in:
richarjiang
2025-12-18 16:36:53 +08:00
parent feb5052fcd
commit 76c37bfeb0
47 changed files with 102 additions and 58 deletions

View File

@@ -1,4 +1,4 @@
import { Image } from 'expo-image';
import { Image } from '@/components/ui/Image';
import React from 'react';
import { Pressable, StyleSheet, Text, View } from 'react-native';
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';

View File

@@ -1,10 +1,10 @@
import { Image } from '@/components/ui/Image';
import { useAppDispatch, useAppSelector } from '@/hooks/redux';
import { ChallengeType } from '@/services/challengesApi';
import { reportChallengeProgress, selectChallengeList } from '@/store/challengesSlice';
import { logger } from '@/utils/logger';
import { fetchCompleteSleepData, formatSleepTime } from '@/utils/sleepHealthKit';
import dayjs from 'dayjs';
import { Image } from 'expo-image';
import { router } from 'expo-router';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';