currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput

Please provide the following:

  1. SDK Version: expo39
  2. Platforms(Android/iOS/web/all): ios 13.6

「currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput」

The error above occurs when I try to write something in TextInput of react-native and focus out of it.

import { TextInput, SafeAreaView } from ‘react-native’;

1 Like

Hey @nayc,

Are you explicitly using currentlyFocusedField?

If not, are you using react-navigation? If you are, you might need to update as some changes were published recently to fix this.


Thanks for your answer, Adam.

I’m not directly using currentlyFocusedField, but using TextInput. and error occurs inside it.

there is likely some other library in your app that is using it. you can search node_modules for “currentlyFocusedField” to find which one.

Ok, I’ll look into the other lib too.

Probably caused by react-native-keyboard-aware-scroll-view

I think you might be right in my project I get the error with when using react-native-keyboard-aware-scroll-view

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.