forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to import some of the functionalities from PR facebook#29466
Use maintainVisibleContentPosition instead of existing functionality in FlatList implementation PR 29466 facebook#29466
- Loading branch information
1 parent
c98b369
commit 4ba2671
Showing
6 changed files
with
188 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...va/com/facebook/react/views/scroll/ReactScrollViewMaintainVisibleContentPositionData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.facebook.react.views.scroll; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
public class ReactScrollViewMaintainVisibleContentPositionData { | ||
public final int minIndexForVisible; | ||
|
||
public final @Nullable Integer autoScrollToTopThreshold; | ||
|
||
ReactScrollViewMaintainVisibleContentPositionData( | ||
int minIndexForVisible, @Nullable Integer autoScrollToTopThreshold) { | ||
this.minIndexForVisible = minIndexForVisible; | ||
this.autoScrollToTopThreshold = autoScrollToTopThreshold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters