octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

please update it to close the issue

Can you make a pull request with the fix?

it is fixed

The fix doesn't seem to work for me, I updated to V2.4.4 and still have this issue

IMG_5B9F696D5145-1

Seeing this issue as well on 2.4.4

I created a PR: #193