fix: don't use deprecated currentlyFocusedField (#8365)

Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
This commit is contained in:
Kang Byung Seon
2020-06-15 22:12:56 +09:00
committed by GitHub
parent 95b044ecf9
commit 35d6b9e3a4

View File

@@ -35,7 +35,11 @@ export default class KeyboardManager extends React.Component<Props> {
this.clearKeyboardTimeout();
const input = TextInput.State.currentlyFocusedField();
// @ts-ignore
const input = TextInput.State.currentlyFocusedInput
? // @ts-ignore
TextInput.State.currentlyFocusedInput()
: TextInput.State.currentlyFocusedField();
// When a page change begins, blur the currently focused input
TextInput.State.blurTextInput(input);