You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a KeyboardAccessoryView inside a SafeAreaView. The red and green views are the content from a chat conversation and the yellow part is a text input field to write a new message. The blue part is the SafeAreaView, normally it is orange but the KeyboardAccessoryView (blue) overlaps the SafeAreaView. The green parts are there to show the top and bottom edges of the content, which should be the complete remaining space of the screen all the time (with and without the keyboard).
What I receive:
Keyboard closed
Keyboard opened
The safeAreaView is normally orange but the KeyboardAccessoryView overlays the SafeAreaView so in this picture the safeAreaView is blue
Here we can see that the SafeAreaView get pushed up (orange is above yellow)
What I expected:
I expected that the safeAreaView (orange) is no longer visible and not pushed above the input (yellow) when the keyboard is visible.
and added also the bottomInset Prop to KeyboardAccessoryView.js and then i use the useSafeAreaInsets() from 'react-native-safe-area-context' and set the bottomInset from the KeyboardAccessoryView
Is there any better solution to fix this?
The text was updated successfully, but these errors were encountered:
What I have done:
I have a KeyboardAccessoryView inside a SafeAreaView. The red and green views are the content from a chat conversation and the yellow part is a text input field to write a new message. The blue part is the SafeAreaView, normally it is orange but the KeyboardAccessoryView (blue) overlaps the SafeAreaView. The green parts are there to show the top and bottom edges of the content, which should be the complete remaining space of the screen all the time (with and without the keyboard).
What I receive:
What I expected:
I expected that the safeAreaView (orange) is no longer visible and not pushed above the input (yellow) when the keyboard is visible.
Here is my implementation:
My workaround:
I have patched the package and change the visibleHeight in line 161
react-native-keyboard-accessory/src/KeyboardAccessoryView.js
Line 161 in 4f98a2b
and added also the bottomInset Prop to KeyboardAccessoryView.js and then i use the useSafeAreaInsets() from 'react-native-safe-area-context' and set the bottomInset from the KeyboardAccessoryView
Is there any better solution to fix this?
The text was updated successfully, but these errors were encountered: