Skip to content

Get the axis-Y of the top #2

@lazywei

Description

@lazywei

Hi,

When scrolling, I'd like to check if we are at the top-most because I'd like to load more messages when scroll to top-most. In original scroll view, I can check if the

onScroll={(e) => console.log(e.nativeEvent.contentOffset.y)}

to see if the y is less then 0. However, in inverted scroll view, the y is increasing when scrolling up. In such case, how can I tell if I've already scrolled to the top-most?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions