douglasjunior / react-native-keyboard-manager

⚛ Library to prevent issues of keyboard sliding up and cover inputs on React-Native iOS projects.
https://www.npmjs.com/package/react-native-keyboard-manager
MIT License
952 stars 60 forks source link

Pushing up the whole screen when keyboard at bottom #63

Closed witalobenicio closed 4 years ago

witalobenicio commented 4 years ago

I'm trying to implement a chat screen similar to Telegram. So I have a TextInput at the bottom of the screen. When I open the keyboard, the whole screen is pushed up.

Just like this:

Captura de Tela 2020-01-09 às 19 41 47

At the top of the screen, I have a native navBar that is being pushed too (that's my problem).

There is some way to overcome this issue?

douglasjunior commented 4 years ago

Unfortunately, no.

IQKeyboardManager's behavior is to swipe the entire screen up/down.

You can try the https://facebook.github.io/react-native/docs/keyboardavoidingview

mohamed-sultan commented 4 years ago

i solved this issue by disable the keyboardmanager in component willmount of chat screen and enable it again in component willunMount KeyboardManager.setEnable(false); KeyboardManager.setEnable(true);