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={