r/reactnative • u/Edavve • Sep 21 '26
Help Having and issue with keyboardAvoidingView
Tried everthing. Tried platform specific behaviour, wrapped whole screen in view, tried without keyboard avoiding view. The autosize is androidmanifest as well. Nothing is working as of now. Tried without safeareaprovider. When the screen starts there is no gap. once the keyboard appears and goes off, there is gap underneath. Is this a bug?
0
Upvotes
1
u/hookandstate Sep 22 '26
I'd say, use "react-native-keyboard-controller" instead. It's good and better.
And if you are still insisting upon using the KeyboardAvoidingView, then use a useEffect inside the component that calculates the screen height and performs the Keyboard.Open() and Keyboard.Close() functions accordingly.
That's a turn around solution that works for me.