Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Keyboard appearance animation in React Native

When the user start focusing the text input. The keyboard will be moved in from the bottom. How can i avoid this animation when start focusing?

I just read the doc of TextInput, Keyboard. But no related parameter is mentioned in the doc:

https://facebook.github.io/react-native/docs/keyboard.html

https://facebook.github.io/react-native/docs/textinput.html

like image 685
Dicky Chan Avatar asked Nov 08 '22 18:11

Dicky Chan


1 Answers

Currently, It's not supported.

RN doesn't support a way to set [UIView setAnimationsEnabled:NO];, which is the way to disable the animation for iOS, or setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); for Android.

like image 149
Estevão Lucas Avatar answered Nov 15 '22 14:11

Estevão Lucas