Skip to content

Commit 96a0f3a

Browse files
Matthew Sessionsalvaromb
authored andcommitted
scrollToFocusedInput flow types reflect how the arguments are used (APSL#207)
1 parent b3cc038 commit 96a0f3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/KeyboardAwareHOC.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ function listenToKeyboardEvents(ScrollableComponent: React$Component) {
154154
* @param extraHeight: takes an extra height in consideration.
155155
*/
156156
scrollToFocusedInput = (
157-
reactNode: Object,
158-
extraHeight: number,
159-
keyboardOpeningTime: number
157+
reactNode: any,
158+
extraHeight?: number,
159+
keyboardOpeningTime?: number
160160
) => {
161161
if (extraHeight === undefined) {
162162
extraHeight = this.props.extraHeight || 0

0 commit comments

Comments
 (0)