이제 fetchNextPage, isFetchingNextPage를 Articles 컴포넌트의 Props로 설정해주세요.
screens/ArticlesScreen.tsx
() function () { const {data, isFetchingNextPage, fetchNextPage} ( 'articles', ({pageParam}) => ({cursor pageParam}), { (lastPage) => lastPage.length == 10 lastPage[lastPage.length 1].id undefined, }, ); const items (() => { if (data) { return null; } return ([] as Article[]).(data.pages); }, [data]); const [user] (); if (items) { return ( <ActivityIndicator size="large" style={styles.spinner} color="black" /> ); } return ( <Articles articles={items} showWriteButton={!!user} isFetchingNextPage={isFetchingNextPage} fetchNextPage={fetchNextPage} /> ); } ()