Skip to content

Commit

Permalink
Mark scrollToEnd animated as optional
Browse files Browse the repository at this point in the history
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
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Dec 14, 2022
1 parent 1752fdc commit e1af630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Components/ScrollView/ScrollView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ export class ScrollView extends ScrollViewBase {
* The options object has an animated prop, that enables the scrolling animation or not.
* The animated prop defaults to true
*/
scrollToEnd(options?: {animated: boolean}): void;
scrollToEnd(options?: {animated?: boolean}): void;

/**
* Displays the scroll indicators momentarily.
Expand Down

0 comments on commit e1af630

Please sign in to comment.