APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

currentlyFocusedField is deprecated #459

Closed Navipro70 closed 3 years ago

Navipro70 commented 3 years ago

Please add following code to lib, for fast solution with new version of lib.

@punisher49 : Select the file: node_modules/react-native-keyboard-aware-scroll-view/lib/KeyboardAwareHOC.js Line 372 & replace: const currentlyFocusedField = TextInput.State.currentlyFocusedInput ? findNodeHandle(TextInput.State.currentlyFocusedInput()) : TextInput.State.currentlyFocusedField(); Save, and it's done 👍

Originally posted by @koff75 in https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/440#issuecomment-699637083

Navipro70 commented 3 years ago

Oh, sorry. PR already merged 😅. But if you faced with this problem. Just run yarn add react-native-keyboard-aware-scroll-view to update lib in package.json.