简体   繁体   English

反应-键盘上的本地点击

[英]React - Native tapping with keyboard on

I have a problem with Keyboard. 我的键盘有问题。 In my app, I can not click the buttons (TouchableOpacity) while the keyboard is opened. 在我的应用程序中,打开键盘时无法单击按钮(TouchableOpacity)。 I need to tap twice. 我需要点击两次。 The first tap is for closing the keyboard, and second is for tapping the button. 第一次敲击用于关闭键盘,第二次敲击按钮。 Any idea on how to fix it? 关于如何解决它的任何想法? I can not find anything on google. 我在Google上找不到任何东西。

Add this param keyboardShouldPersistTaps='handled' prop to the ScrollView tag. 将此参数keyboardShouldPersistTaps='handled'道具添加到ScrollView标记中。

And Let me know it's work for you or not. 并且让我知道这对您是否有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM