fix: remove use of deprecated currentlyFocusedField

This commit is contained in:
Satyajit Sahoo
2021-03-10 05:06:26 +01:00
parent 72f90b50d2
commit 038eb87c42

View File

@@ -37,8 +37,7 @@ export default class KeyboardManager extends React.Component<Props> {
this.clearKeyboardTimeout();
// @ts-expect-error: blurTextInput accepts both number and ref, but types say only ref
const input: InputRef = TextInput.State.currentlyFocusedField();
const input: InputRef = TextInput.State.currentlyFocusedInput();
// When a page change begins, blur the currently focused input
input?.blur();