discussions-and-proposals icon indicating copy to clipboard operation
discussions-and-proposals copied to clipboard

Add the possibility to remove UI native animations

Open sirusbaladi opened this issue 2 years ago • 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

sirusbaladi avatar Feb 11 '23 23:02 sirusbaladi

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.

https://user-images.githubusercontent.com/19273413/218287804-5adb7b2f-28ae-41c6-9c19-a97c0d3dce1b.mp4

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

a-eid avatar Feb 12 '23 01:02 a-eid