I want to change the styles of the headers when they stick on the top of the SectionList. So I want some event that will let me know that the header are now sticking so as to change its style.
<SectionList
sections={this.state.list}
keyExtractor={(item, index) => item.id + index}
renderItem={({ item, index }) =>
<CustomItem
title={item.name}
description={item.appDescription}
>
</ExpandableItem>}
renderSectionHeader={({ section: { title, id } }) => (
this.state.list.length > 1 ? <View style={styles.sectionHeader} >
<Text style={styles.sectionHeaderTitle}>{title}</Text>
</View> : null
)}
ListHeaderComponent={() => {
return (<View style={{ paddingTop: 20 }} />);
}}
stickySectionHeadersEnabled={true}
removeClippedSubviews={true}
/>```