diff --git a/src/KeyboardScrollView.tsx b/src/KeyboardScrollView.tsx index bc97ade..96f8a95 100644 --- a/src/KeyboardScrollView.tsx +++ b/src/KeyboardScrollView.tsx @@ -61,7 +61,7 @@ export const KeyboardScrollView = ({ const currentlyFocusedInput = TextInput.State.currentlyFocusedInput(); const currentScrollY = scrollPositionRef.current; - currentlyFocusedInput.measureInWindow((_x, y, _width, height) => { + currentlyFocusedInput?.measureInWindow((_x, y, _width, height) => { const endOfInputY = y + height + androidStatusBarOffset; const deltaToScroll = endOfInputY - keyboardY;