You need to set prop to Flatlist as stickyHeaderIndices={[0]}
ListHeaderComponent . This tooltip set the caption at the top of the Flatlist .
stickyHeaderIndices = {[0]} : this tooltip will set the element of the Flatlist 0 position to be a sticky title, and as you can see, we have already added the title to the Flatlist , so the title is now at index position 0, so it will make the title sticky by default.
<FlatList data={ this.state.FlatListItems } ItemSeparatorComponent={ this.FlatListItemSeparator} renderItem={ ({item}) => ( <Text style={styles.FlatList_Item} onPress={this.GetItem.bind(this, item.key)}> {item.key} </Text> )} ListHeaderComponent={this.Render_FlatList_Sticky_header} stickyHeaderIndices={[0]} />
source share