Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 4, 2021
1 parent de9579b commit 1a3575b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/KeyboardAwareHOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ function KeyboardAwareHOC(

scrollToPosition = (x: number, y: number, animated: boolean = true) => {
const responder = this.getScrollResponder()
if (!responder) return;
if (!responder) {
return
}
if (responder.scrollResponderScrollTo) {
// React Native < 0.65
responder.scrollResponderScrollTo({ x, y, animated })
Expand All @@ -285,7 +287,9 @@ function KeyboardAwareHOC(

scrollToEnd = (animated?: boolean = true) => {
const responder = this.getScrollResponder()
if (!responder) return;
if (!responder) {
return
}
if (responder.scrollResponderScrollToEnd) {
// React Native < 0.65
responder.scrollResponderScrollToEnd({ animated })
Expand Down

0 comments on commit 1a3575b

Please sign in to comment.