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
This commit is contained in:
Nick Gerleman
2022-12-19 14:16:27 +00:00
committed by Riccardo Cipolleschi
parent 754524ea9d
commit 8770b2724a
+1 -1
View File
@@ -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.