问题描述
当用户开始关注文本输入时.键盘将从底部移入.开始对焦时如何避免出现这种动画?
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?
我刚刚阅读了TextInput,Keyboard的文档.但是文档中没有提及相关参数:
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
推荐答案
当前不支持.
RN不支持设置[UIView setAnimationsEnabled:NO];
的方法,这是一种禁用iOS动画或setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
安卓动画的方法.
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.
这篇关于如何在React Native中禁用键盘外观动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!