VirtualizedLists should never be nested inside plain ScrollViews with the same orientation

dev bourgeois·2024년 8월 15일

React-Native 개발

목록 보기
8/16
post-thumbnail

ScrollView 내에 FlatList 또는 SectionList와 같은 VirtualizedList를 중첩하여 사용할 수 없다는 의미이다.

➡️ ScrollView 대신 FlatList 또는 SectionList를 사용하거나, ScrollView 내부의 리스트 컴포넌트를 제거하고 단일 리스트 컴포넌트를 사용하면 해결된다.

0개의 댓글