From e5b98a9bb8e80b4068d1d77b03cde7286dcddd49 Mon Sep 17 00:00:00 2001 From: AHMED SHERIF Date: Mon, 17 Jan 2022 04:12:40 +0200 Subject: [PATCH] add maintainVisibleContentPosition to FlatList --- src/components/InvertedFlatList/BaseInvertedFlatList.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/InvertedFlatList/BaseInvertedFlatList.js b/src/components/InvertedFlatList/BaseInvertedFlatList.js index 0ecf5234501a..bd2961dd35cd 100644 --- a/src/components/InvertedFlatList/BaseInvertedFlatList.js +++ b/src/components/InvertedFlatList/BaseInvertedFlatList.js @@ -154,6 +154,7 @@ class BaseInvertedFlatList extends Component { maxToRenderPerBatch={1} windowSize={15} removeClippedSubviews={this.props.shouldRemoveClippedSubviews} + maintainVisibleContentPosition={{minIndexForVisible: 0, autoscrollToTopThreshold: 0}} /> ); }