전체 글(74)
-
SectionList, FlatList
강의출처 https://www.youtube.com/watch?v=Otp4cCts7oo&list=PL8kfZyp--gEXs4YsSLtB3KqDtdOFHMjWZ&index=10
2021.08.19 -
List, ScrollView & RefreshControl
강의출처 https://www.youtube.com/watch?v=Hy3HudbaU68&list=PL8kfZyp--gEXs4YsSLtB3KqDtdOFHMjWZ&index=9
2021.08.19 -
Too many re-renders. React limits the number of renders to prevent an infinite loop. 오류 해결법 2021.08.18
-
SectionList 뽀개기 2021.08.18
-
Objects are not valid as a React child 오류 해결법
React Native로 작업 중 SectionList에 데이터를 넣는 과정에서 오류가 생겼다. Objects are not valid as a React child (found: object with keys {maintag,subtag}). If you meant to render a collection of children, use an array instead. 해석하자면 Object는 React의 하위 개체로 유효하지 않다. (해당 객체에서 오류를 찾았다) 하위 개체를 랜더하기를 원한다면 배열로 넣어라. 여기서 객체 말고 배열로 데이터를 넣으면 아주 간단하게 해결된다. - 하지만 배열로만 들어가서는 안되는 데이터는? 어떻게 해야할까??????? const DATA = [ { title: {mai..
2021.08.18 -
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation 시뮬레이터 scrollView 오류 해결법
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. 대강 해석해보자면 VirtualizedLists는 같은 방향으로 일반 ScrollView와 중첩되어서는 안된다. ScrollView 안에 SectionList를 넣었더니 해당 오류가 나타났다. List는 일반 ScrollView에 넣으면 중첩되기 때문. (왜 중첩이 되는지는 모르겠..
2021.08.18