namjh654 / mnu_busproject_app

project :
0 stars 1 forks source link

'react-native-parallax-header' / flatlist 충돌 warning 처리 방법 #20

Open namjh654 opened 3 years ago

namjh654 commented 3 years ago

VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.


해결 <FlatList numColumns={5} // 배열 5줄 가운데 공백 출력 data={this.state.seat} renderItem={this.renderItem} // keyExtractor ={(item) => item.id} nestedScrollEnabled />

flatlist 안에 nestedScrollEnabled 추가.

namjh654 commented 3 years ago

warning

namjh654 commented 3 years ago

https://machine-woong.tistory.com/293

  1. flatlist 안에 nestedScrollEnabled={true} 추가하기.
  2. from 'react-native' flatlist 쓰지말고 react-native-gesture-handler