From 4e4b4abc841026b23b167cf0d2f9d5e5f750b8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20M?= Date: Wed, 17 May 2017 09:37:36 +0200 Subject: [PATCH] Add scrollToEnd function --- ScrollableMixin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ScrollableMixin.js b/ScrollableMixin.js index 97dbfe6..0e44ba0 100644 --- a/ScrollableMixin.js +++ b/ScrollableMixin.js @@ -7,6 +7,10 @@ let ScrollableMixin = { this.getScrollResponder().scrollTo(destY, destX); }, + scrollToEnd(options?: { animated?: boolean }) { + this.getScrollResponder().scrollToEnd(options); + }, + scrollWithoutAnimationTo(destY?: number, destX?: number) { this.getScrollResponder().scrollWithoutAnimationTo(destY, destX); },