From 3868f207add41d2e9507ad040c940be8a22a2b1c Mon Sep 17 00:00:00 2001 From: Matt Sessions Date: Mon, 18 Dec 2017 10:22:42 -0700 Subject: [PATCH] scrollToFocusedInput flow types reflect how the arguments are used --- lib/KeyboardAwareHOC.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/KeyboardAwareHOC.js b/lib/KeyboardAwareHOC.js index af4ac5b..db95891 100644 --- a/lib/KeyboardAwareHOC.js +++ b/lib/KeyboardAwareHOC.js @@ -154,9 +154,9 @@ function listenToKeyboardEvents(ScrollableComponent: React$Component) { * @param extraHeight: takes an extra height in consideration. */ scrollToFocusedInput = ( - reactNode: Object, - extraHeight: number, - keyboardOpeningTime: number + reactNode: any, + extraHeight?: number, + keyboardOpeningTime?: number ) => { if (extraHeight === undefined) { extraHeight = this.props.extraHeight || 0