键盘在屏幕上永久可见 [英] Keyboard visibility permanently on screen
本文介绍了键盘在屏幕上永久可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以设置为当我打开新屏幕时:
Is it possible to set so that when I turn on the new screen:
- 键盘开启
- 键盘将始终可见
我在屏幕上有一个 TextInput 并且可以从 select 中进行选择
I have one TextInput on the screen and the option to select from select
我希望键盘始终可见,无论我们是否点击了输入或在屏幕上执行其他操作
I would like the keyboard to be always visible, regardless of whether we have clicked Input or do something else on the screen
键盘上有一个带有功能的按钮,而不是回车
On the keyboard there is a button with the function instead of Enter
推荐答案
在 TextInput
组件上使用 autoFocus
道具,然后将 keyboardShouldPersistTaps 放在你的父视图上
Use the autoFocus
prop on the TextInput
component and then put keyboardShouldPersistTaps on your Parent View
这篇关于键盘在屏幕上永久可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文