diff --git a/Libraries/Components/ScrollResponder.js b/Libraries/Components/ScrollResponder.js index f7da4efeae86cc..449f73ba350c5c 100644 --- a/Libraries/Components/ScrollResponder.js +++ b/Libraries/Components/ScrollResponder.js @@ -560,8 +560,14 @@ const ScrollResponderMixin = { this.scrollResponderInputMeasureAndScrollToKeyboard, ); } else { + const innerRef = this.getInnerViewRef(); + + if (innerRef == null) { + return; + } + nodeHandle.measureLayout( - this.getInnerViewRef(), + innerRef, this.scrollResponderInputMeasureAndScrollToKeyboard, this.scrollResponderTextInputFocusError, );