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
4
u/Jet-life1 Sep 21 '26
Use this instead https://kirillzyusko.github.io/react-native-keyboard-controller/ thank me later
3
u/uaddahell Sep 22 '26
This should be a bug of KAV with edge-to-edge enabled. It has been fixed in 0.86.
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.
1
u/Primary_Ranger_7398 Sep 24 '26
Use the Keyboard Controller bro it helps me a lot
-3
u/Edavve Sep 21 '26