React-Native TextInput 有焦点但没有键盘显示 [英] React-Native TextInput with focus but without keyboard showing

查看:94
本文介绍了React-Native TextInput 有焦点但没有键盘显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我父亲的公司开发一个库存系统,其必要条件是能够使用外部条码/二维码扫描仪.

I'm developing an inventory system for my father's company and on of its requisites is to be able to use an external Barcode/QR Code scanner.

我也使用相机开发了所有东西,但我确实需要使用扫描仪没有显示键盘.

I've developed everything using the camera as well, but I really need to use the scanner whithout showing the keyboard.

你们有没有人知道这是否可能?如果没有,是否可以通过其他方式完成?

Do any of you guys know if it's possible? if not, can it be done in any other way?

推荐答案

在较新的 react-native 版本中有一个名为 showSoftInputOnFocus 的属性.将此设置为 false 会隐藏键盘.

There is a property called showSoftInputOnFocus in newer react-native versions. Setting this to false keeps the keyboard hidden.

在 v0.60.0 上为我工作

Working for me on v0.60.0

这篇关于React-Native TextInput 有焦点但没有键盘显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆