diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 30e87a6de92ee3..74f0113cac74ff 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -1073,7 +1073,9 @@ function InternalTextInput(props: Props): React.Node { () => ({ onPress: (event: PressEvent) => { if (props.editable !== false) { - nullthrows(inputRef.current).focus(); + if (inputRef.current != null) { + inputRef.current.focus(); + } } }, onPressIn: props.onPressIn,