react native - Views are still shifted when the keyboard opens, even though they are not wrapped in a KeyboardAvoidingView - Sta

时间: 2025-01-06 admin 业界

I am not using KeyboardAvoidingView in my expo project and even though, when I press the TextInput and open the keyboard, It shifts the elements up.

I searched and saw it being mentioned here: github problem, but the solutions there didn't work for me.

it suggested adding { minHeight: Math.round(Dimensions.get('window').height) } for the main view but it didn't work.

also in app.json

"android": { "softwareKeyboardLayoutMode": "pan

"didn't work.