Skip to content

Commit ab50acf

Browse files
committed
Fixed security warnings
1 parent 4e70860 commit ab50acf

File tree

4 files changed

+560
-1840
lines changed

4 files changed

+560
-1840
lines changed

lib/KeyboardAwareHOC.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ export type KeyboardAwareHOCOptions = ?{
104104
}
105105

106106
function getDisplayName(WrappedComponent: React$Component) {
107-
return WrappedComponent && (WrappedComponent.displayName || WrappedComponent.name) || 'Component'
107+
return (
108+
(WrappedComponent &&
109+
(WrappedComponent.displayName || WrappedComponent.name)) ||
110+
'Component'
111+
)
108112
}
109113

110114
const ScrollIntoViewDefaultOptions: KeyboardAwareHOCOptions = {
@@ -260,7 +264,7 @@ function KeyboardAwareHOC(
260264
getScrollResponder = () => {
261265
return (
262266
this._rnkasv_keyboardView &&
263-
this._rnkasv_keyboardView.getScrollResponder &&
267+
this._rnkasv_keyboardView.getScrollResponder &&
264268
this._rnkasv_keyboardView.getScrollResponder()
265269
)
266270
}
@@ -437,7 +441,11 @@ function KeyboardAwareHOC(
437441
this.defaultResetScrollToCoords = null
438442
return
439443
} else if (this.props.resetScrollToCoords) {
440-
this.scrollToPosition(this.props.resetScrollToCoords.x, this.props.resetScrollToCoords.y, true)
444+
this.scrollToPosition(
445+
this.props.resetScrollToCoords.x,
446+
this.props.resetScrollToCoords.y,
447+
true
448+
)
441449
} else {
442450
if (this.defaultResetScrollToCoords) {
443451
this.scrollToPosition(

0 commit comments

Comments
 (0)