TIL

[RN] scrollview 중첩 사용 에러

0youn 2021. 10. 7. 20:07

오늘 작업하다가 아래와 같은 에러 코드를 뱉어서 심히 당황했다.

뭔고하니 RN에서는 스크롤뷰 내부에 스크롤을 할 수 없다는 것이다.

 

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.

 

그런 고로 스크롤뷰 내부에는 스크롤뷰를 넣지 않는걸로!

 

참고 - https://stackoverflow.com/questions/67623952/error-virtualizedlists-should-never-be-nested-inside-plain-scrollviews-with-th