CurrentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
B-Houssam opened this issue · comments
Issue Description
I'm using this package with a TextInput, but when the focus is on the TextInput (the keyboard appear) it gives an error :
currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
Environment
- Version: Latest
- React Native version: 0.63
- Platform(s) : Android
- Device info: Simulator and real device
i found a solution for it
you can open in the app project folder :
node_modules/rn-sliding-up-panel/SlidingUpPanel.js
and emove and replace the line 315 by the following:
const node = TextInput.State.currentlyFocusedInput() ? findNodeHandle(TextInput.State.currentlyFocusedInput()) : TextInput.State.currentlyFocusedField();
please update it to close the issue
+1
please update it to close the issue
Can you make a pull request with the fix?
it is fixed
Seeing this issue as well on 2.4.4
I created a PR: #193