프론트엔드/RN
RN(React-Native) 중첩 스크롤 오류 해결방법 ㅣ 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.
순코딩
2025. 9. 23. 20:50
ERROR - VirtualizedLists should never be nested inside plain ScrollViews with the same orientation
I'm working on a react-native app and I have to put a list of object in a Scrollview, so I use the FlatList component to do it. This is the piece of code that generates the error: <ScrollView
stackoverflow.com
내부 스크롤에 FlatList X / ScrollView O 사용하기
<ScrollView scrollEnabled={true} nestedScrollEnabled={true}>
{commentList?.map((item) => (
<CommentItem key={item.id} comment={item} />
))}
</ScrollView>