Skip to content

Commit e1af630

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Mark scrollToEnd animated as optional
Summary: The flow type and inheriting TS types mark animated as optional, mark it here as well. Changelog: [General][Fixed] - Mark scrollToEnd animated as optional Reviewed By: christophpurrer Differential Revision: D42036647 fbshipit-source-id: 59d408adc639ee1e0ca040301511c64d7ba55bfe
1 parent 1752fdc commit e1af630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Components/ScrollView/ScrollView.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ export class ScrollView extends ScrollViewBase {
841841
* The options object has an animated prop, that enables the scrolling animation or not.
842842
* The animated prop defaults to true
843843
*/
844-
scrollToEnd(options?: {animated: boolean}): void;
844+
scrollToEnd(options?: {animated?: boolean}): void;
845845

846846
/**
847847
* Displays the scroll indicators momentarily.

0 commit comments

Comments
 (0)