APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

Android soft keyboard pushing absolute-positioned header component off the screem #465

Open Maharshi01 opened 3 years ago

Maharshi01 commented 3 years ago

When textinput is focused which is in the region of the keyboard(i.e., at the bottom of the screen) keyboard is pushing the header component out of the screen, this issue is not occuring in iOS.

P.S. I set android:windowSoftInputMode="adjustPan" is the AndroidManifest

whoamiiamme commented 3 years ago

you can use react-native-android-keyboard-adjust to set adjustResize where screen keyboard pushing absolute-positioned header?

nathantqn commented 3 years ago

I'm having the same issue, did you have solution for that @Maharshi01?

whoamiiamme commented 3 years ago

I'm having the same issue, did you have solution for that @Maharshi01?

i had a same, and i use react-native-android-keyboard-adjust to solve. it is:

import AndroidKeyboardAdjust from 'react-native-android-keyboard-adjust';

class MyForm extends Component {

componentDidMount() { Platform.OS === "android" && AndroidKeyboardAdjust.setAdjustResize(); }

componentWillUnmount() { Platform.OS === "android" && AndroidKeyboardAdjust.setAdjustPan(); } }

in AndroidManifest.xml i set android:windowSoftInputMode="adjustPan".You can try it?