Skip to content

Commit

Permalink
testing implementation of mantainVisibleContentPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Sep 23, 2022
1 parent 4ba2671 commit f610785
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,8 @@ public void onLayoutChange(

int currentScrollY = getScrollY();
int maxScrollY = getMaxScrollY();
// this is a test of the implementation from
// https://github.com/facebook/react-native/pull/29466/files#diff-dd50314ea4292aa2fb65c5511378b1d7bce34d337cd8f9b99890761ee2dd8160R1040-R1073
if (mEnabledTalkbackCompatibleInvertedList) {
if (mInitialScrollTriggered) {
scrollMaintainVisibleContentPosition();
Expand Down
6 changes: 3 additions & 3 deletions packages/rn-tester/js/examples/FlatList/FlatList-inverted.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ function NestedFlatList(props) {
<Text>Flatlist</Text>
<FlatList
maintainVisibleContentPosition={{
minIndexForVisible: minIndex,
minIndexForVisible: 0,
}}
inverted
enabledTalkbackCompatibleInvertedList
// inverted
// enabledTalkbackCompatibleInvertedList
renderItem={renderItem}
data={items}
/*
Expand Down

0 comments on commit f610785

Please sign in to comment.