kirillzyusko / react-native-keyboard-controller

Keyboard manager which works in identical way on both iOS and Android
https://kirillzyusko.github.io/react-native-keyboard-controller/
MIT License
1.54k stars 61 forks source link

Add an ability to show views over the keyboard (when it's open) #373

Open kirillzyusko opened 6 months ago

kirillzyusko commented 6 months ago

Is your feature request related to a problem? Please describe.

I'd like to have an ability to show custom views over the keyboard as in Telegram, for example:

iOS Android

Describe the solution you'd like

That would be good to have OverKeyboardView exported from this library. The API could be like:

<OverKeyboardView>
  {/* custom views is placed here */}
</OverKeyboardView>

Describe alternatives you've considered

There is no good alternatives. Right now we need to close a keyboard and show elements to be sure they are not drawn under the keyboard.

Modals and portals are not helping a lot here, since view still obscured by the keyboard.

Additional context

We can take telegram app as a reference to see how it was implemented there.