지니 코딩일기

RN) FlatList 본문

Programming/React-native

RN) FlatList

zzzl 2022. 6. 24. 14:58

요약

리스트 생성

data에 데이터를 넣으면 renderItem 형태로 된 item의 리스트를 만들어줌

*section 구분이 필요하다면 <SectionList> 사용!

 

 

설명

아래 사항들을 모두 지원함

  • Fully cross-platform.
  • Optional horizontal mode.
  • Configurable viewability callbacks.
  • Header support.
  • Footer support.
  • Separator support.
  • Pull to Refresh.
  • Scroll loading.
  • ScrollToIndex support.
  • Multiple column support.

 

공식 문서

https://reactnative.dev/docs/flatlist

 

FlatList · React Native

A performant interface for rendering basic, flat lists, supporting the most handy features:

reactnative.dev

 

예시

 

'Programming > React-native' 카테고리의 다른 글

RN) react native 헤더 사이즈 구하기  (0) 2022.07.20
RN) ActivityIndicator 로딩바  (0) 2022.07.04
RN) SafeAreaView  (0) 2022.06.30
RN) KeyboardAvoidingView  (0) 2022.06.30
RN) TouchableWithoutFeedback  (0) 2022.06.24