
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead.
ScrollView 안에 FlatList를 넣으면 발생하는 오류
<ScrollView>
<View style={styles.header}>
{/* 헤더 내용 */}
</View>
<ParticipationList participations={participations} /> // 여기서 FlatList 사용
</ScrollView>
<ScrollView nestedScrollEnabled>
{/* 기존 코드 유지 */}
</ScrollView>
<FlatList
data={participations}
renderItem={({ item }) => (
<ParticipationItem item={item} />
)}
ListHeaderComponent={() => (
<>
<View style={styles.header}>
{/* 헤더 내용 */}
</View>
</>
)}
/>
const ParticipationList = ({ participations }) => {
return (
<View>
<Text style={styles.sectionTitle}>참여 매치</Text>
{participations.map((item) => (
<View key={item.match.id} style={styles.card}>
{/* 카드 내용 */}
</View>
))}
</View>
);
};
nestedScrollEnabled
FlatList 통합
map() 사용