From e1af6302fc189948ed0e123a39e0b08cd253fc27 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Wed, 14 Dec 2022 15:04:55 -0800 Subject: [PATCH] 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 --- Libraries/Components/ScrollView/ScrollView.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/ScrollView/ScrollView.d.ts b/Libraries/Components/ScrollView/ScrollView.d.ts index 0803499a44e24d..a80f04236fe27f 100644 --- a/Libraries/Components/ScrollView/ScrollView.d.ts +++ b/Libraries/Components/ScrollView/ScrollView.d.ts @@ -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.