diff --git a/lib/KeyboardAwareHOC.js b/lib/KeyboardAwareHOC.js index 03f46af..20530bc 100644 --- a/lib/KeyboardAwareHOC.js +++ b/lib/KeyboardAwareHOC.js @@ -334,8 +334,9 @@ function KeyboardAwareHOC( scrollIntoView = async ( element: React.Element<*>, - options: ScrollIntoViewOptions = {} + options: ScrollIntoViewOptions ) => { + options = options || {} if (!this._rnkasv_keyboardView || !element) { return }