File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
ReactAndroid/src/main/java/com/facebook/react/views/scroll
packages/rn-tester/js/examples/FlatList Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 /*
You can’t perform that action at this time.
0 commit comments