octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/
MIT License
929 stars 157 forks source link

Use currentlyFocusInput instead of currentlyFocusedField #185

Closed keeprock closed 3 years ago

keeprock commented 4 years ago
octopitus commented 4 years ago

Thanks @xapai. But i'm suggesting we should fallback to currentlyFocusedField if it exists, in case people use the latest version of the library with an old RN version, as currentlyFocusedInput is only available in 0.63.

const node = TextInput.State.currentlyFocusedField 
  ? TextInput.State.currentlyFocusedField()
  : findNodeHandler(TextInput.State.currentlyFocusedInput());
keeprock commented 4 years ago

Thanks @xapai. But i'm suggesting we should fallback to currentlyFocusedField if it exists, in case people use the latest version of the library with an old RN version, as currentlyFocusedInput is only available in 0.63.

Yeah, sure. You are right. Will fix that.

akmalhazim commented 4 years ago

Hello, Scrolled to this repository issues to find if anyone faced the same problems, thankfully someone is fixing this. Any updates on this?

Nirib13 commented 3 years ago

Hello, any updates on this?

MathisGuilhin commented 3 years ago

Any updates on this PR?

keeprock commented 3 years ago

Guys, I forgot about this PR. Good that octopitus taken over and finished it. Thanks!