From 63ff50a32721a1d46eab5b5b8b623982a2e41c97 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Tue, 24 Jan 2023 10:23:52 +0100 Subject: [PATCH] fix: passed invalid ref to measureLayout --- src/components/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form.js b/src/components/Form.js index 8f1122c52b87..b5bd554cca67 100644 --- a/src/components/Form.js +++ b/src/components/Form.js @@ -292,7 +292,7 @@ class Form extends React.Component { // We subtract 10 to scroll slightly above the input if (focusInput.measureLayout && typeof focusInput.measureLayout === 'function') { - focusInput.measureLayout(this.form, (x, y) => this.form.scrollTo({y: y - 10, animated: false})); + focusInput.measureLayout(this.formRef.current, (x, y) => this.formRef.current.scrollTo({y: y - 10, animated: false})); } }} containerStyles={[styles.mh0, styles.mt5, styles.flex1]}