Search code examples
react-nativekeyboard

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


Solution

  • 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.