hyochan / react-native-masonry-list

The Masonry List implementation which has similar implementation as the `FlatList` in React Native
MIT License
393 stars 55 forks source link

ListHeaderComponent doesnt show #56

Closed tahola closed 1 year ago

tahola commented 1 year ago

Is it only me or the ListHeaderComponent is not supported ? I could post my code but I dont think its necessary, if I replace <MasonryList .../> with <FlatList ... /> the component called in ListHeaderComponent is showing but nothing show with <MasonryList .../> and I dont get any error, its just not here.

Thank you

tahola commented 1 year ago

Nevermind its my code , I was using :

ListHeaderComponent={() => (props.header ? props.header : <View></View>)}

instead of :

ListHeaderComponent={props.header ? props.header : <View></View>}

Thank a lot for your work 👍