mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
a7ea95d3d7
* feat: setup dummy scroll endpoint * chore: use ScrollEventBuilder * chore: enhance API endpoint with parameters * chore: emit multiple scroll events * fix: intermediate steps offset values * feat: momentum scroll * chore: add scroll to userEvent * feat: scrollToTop * feat: remember scroll position for element * fix: setting and getting scroll state * chore: validate host component type * chore: validate and emit intermediate callbacks in scrollToTop * chore: fix ts * refactor: rename scroll to scrollTo * refactor: y & x scrollTo params * refactor: refactor y, x params to support explicit steps * chore: fix typecheck * refactor: improve typing * refactor: momentumY, momentumX options * docs: initial docs for `scrollTo` * refactor: descope `scrollToTop` variant * docs: tweaks * refactor: improve TS typing by separating vertical/horizontal scroll * refactor: wrap scroll event in nativeEvent wrapper * refactor: clean up implementation * chore: add FlatList tests * refactor: remove explicit steps * refactor: introduce inertial interpolator for momentum scroll * docs: update docs * chore: update snapshots * refactor: code review changes * feat: validate scroll direction * docs: tweaks * docs: tweak * refactor: add more tests to improve code cov * refactor: improve errors * refactor: code review tweaks * refactor: add wait calls * refactor: tweaks, tweaks, tweaks * refactor: final tweaks --------- Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>