From 621fbebc083f13b7635dc316cedb05b84f550cf3 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 10 Mar 2026 21:10:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0=20s?= =?UTF-8?q?pinner=20=E8=A2=AB=E9=A1=B6=E9=83=A8=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E9=81=AE=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改用 RefreshControl 并设置 progressViewOffset = insets.top + NAV_H, 将刷新指示器下移到导航栏以下,使其可见。 --- app/index.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/index.tsx b/app/index.tsx index 566ddeb..d19427f 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useState, useRef } from 'react'; import { View, StyleSheet, - Text, TouchableOpacity, ActivityIndicator, Animated, Image, + Text, TouchableOpacity, ActivityIndicator, Animated, Image, RefreshControl, } from 'react-native'; import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context'; import { useRouter } from 'expo-router'; @@ -54,8 +54,13 @@ export default function HomeScreen() { columnWrapperStyle={styles.row} contentContainerStyle={{ paddingTop: insets.top + NAV_H + 8, paddingBottom: insets.bottom + 16 }} renderItem={renderItem} - onRefresh={refresh} - refreshing={refreshing} + refreshControl={ + + } onEndReached={() => load()} onEndReachedThreshold={0.5} ListFooterComponent={