Im developing a react native app with expo managed workflow.
我正在开发一个带有EXPO管理工作流的反应原生应用程序。
I have a TextInput field in the app which I want it to accepts its input from a physical barcode scanner through bluetooth.
我在应用程序中有一个TextInput域,我希望它通过蓝牙接受来自物理条形码扫描器的输入。
The issue: When connecting the barcode scanner through the bluetooth, the mobile identity it as the default input keyboard which makes the virtual/software keyboard to not open when focus on any input in the application.
But I want to force opening the software keyboard on focus to give the ability to the user to insert other information other than barcodes
问题:当通过蓝牙连接条形码扫描仪时,移动设备将其标识为默认输入键盘,这使得当专注于应用程序中的任何输入时,虚拟/软件键盘不会打开。但我想强制打开Focus上的软键盘,使用户能够插入条形码以外的其他信息
Note: This issue is reproducible on ios and android both.
注意:这个问题在iOS和Android上都会重现。
I tried to force opening the software keyboard using react native but nothing worked😞
我尝试使用REACT本机命令强制打开软键盘,但都不起作用😞
更多回答
@JuniusL Sorry code for what? Its a general behavior happening in react native for TextInput.
@JuniusL对不起什么代码?这是一个发生在react native for TextInput中的常规行为。
优秀答案推荐
我是一名优秀的程序员,十分优秀!