I have a situation where I have a flatlist element positioned after another element. When I scroll up, the element before the flatlist remains fixed in its position. Is there a way to make it move up along with the flatlist when scrolled?
For example:
render() {
return (
<View style={styles.container}>
<View>THIS ELEMENT BEFORE CONTAINER STAYS FIXED WHEN SCROLLING FLATLIST</View>
<FlatList
data={this.props.data}
extraData={this.state}
keyExtractor={this._keyExtractor}
renderItem={this._renderItem}
/>
<View>
);
}