Created
March 5, 2020 13:33
-
-
Save sueLan/40878e31625afced805c1bae0732fa77 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * Called when the viewability of rows changes, as defined by the | |
| * `viewabilityConfig` prop. | |
| */ | |
| onViewableItemsChanged?: ?(info: { | |
| viewableItems: Array<ViewToken>, | |
| changed: Array<ViewToken>, | |
| ... | |
| }) => void, | |
| export type ViewToken = { | |
| item: any, | |
| // The key of this item | |
| key: string, | |
| index: ?number, | |
| // indicated whether this item is viewable or not | |
| isViewable: boolean, | |
| section?: any, | |
| ... | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment