react-native-community/discussions-and-proposals

Add the possibility to remove UI native animations

sirusbaladi opened this issue · 1 comments

Introduction

It's now popular in many apps to have the sign up / log in screen with the keyboard already open and with inputs in autofocus. It is great from a UX perspective. Currently there's no way to have the immediately keyboard immediately open in a new screen without seeing the "sliding up" animation.

Details

Something that corresponds to [UIView setAnimationsEnabled:NO]; which is the way to disable the animation for iOS, or setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); for Android.

Discussion points

There are few people that asked about this:
https://stackoverflow.com/questions/71578015/keyboard-automatically-shown-after-open-the-screen
https://stackoverflow.com/questions/45581681/how-to-disable-keyboard-appearance-animation-in-react-native

a-eid commented

this works on ios if you autofocus an input & your using a native navigation solution such as RNN, the navigation router or the native stack.

Feb-12-2023.03-07-36.mp4

I'm not sure if it's possible on android, how does native android behave ?