gpt4 book ai didi

Expo React Native: force virtual keyboard display when connecting to a physical keyboard/barecode scanner(EXPO Native Reaction:连接到物理键盘/光码扫描仪时强制显示虚拟键盘)

转载 作者:bug小助手 更新时间:2023-10-28 21:05:58 29 4
gpt4 key购买 nike



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本机命令强制打开软键盘,但都不起作用😞


更多回答

share your code

分享你的代码

@JuniusL Sorry code for what? Its a general behavior happening in react native for TextInput.

@JuniusL对不起什么代码?这是一个发生在react native for TextInput中的常规行为。

优秀答案推荐
更多回答

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com