We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de9579b commit 1a3575bCopy full SHA for 1a3575b
lib/KeyboardAwareHOC.js
@@ -273,7 +273,9 @@ function KeyboardAwareHOC(
273
274
scrollToPosition = (x: number, y: number, animated: boolean = true) => {
275
const responder = this.getScrollResponder()
276
- if (!responder) return;
+ if (!responder) {
277
+ return
278
+ }
279
if (responder.scrollResponderScrollTo) {
280
// React Native < 0.65
281
responder.scrollResponderScrollTo({ x, y, animated })
@@ -285,7 +287,9 @@ function KeyboardAwareHOC(
285
287
286
288
scrollToEnd = (animated?: boolean = true) => {
289
290
291
292
293
if (responder.scrollResponderScrollToEnd) {
294
295
responder.scrollResponderScrollToEnd({ animated })
0 commit comments