Skip to content

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,8 @@ public void onLayoutChange(
11121112

11131113
int currentScrollY = getScrollY();
11141114
int maxScrollY = getMaxScrollY();
1115+
// this is a test of the implementation from
1116+
// https://github.com/facebook/react-native/pull/29466/files#diff-dd50314ea4292aa2fb65c5511378b1d7bce34d337cd8f9b99890761ee2dd8160R1040-R1073
11151117
if (mEnabledTalkbackCompatibleInvertedList) {
11161118
if (mInitialScrollTriggered) {
11171119
scrollMaintainVisibleContentPosition();

packages/rn-tester/js/examples/FlatList/FlatList-inverted.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ function NestedFlatList(props) {
143143
<Text>Flatlist</Text>
144144
<FlatList
145145
maintainVisibleContentPosition={{
146-
minIndexForVisible: minIndex,
146+
minIndexForVisible: 0,
147147
}}
148-
inverted
149-
enabledTalkbackCompatibleInvertedList
148+
// inverted
149+
// enabledTalkbackCompatibleInvertedList
150150
renderItem={renderItem}
151151
data={items}
152152
/*

0 commit comments

Comments
 (0)