扫描QR码后,在新页面上打印信息
我正在研究QR代码扫描仪。扫描QR码后,我可以使用警报在屏幕上打印信息。但是我想要的是在摄像机中扫描新页面后在新页面上的代码中打印信息。
打开相机并扫描QR码时要采取的措施
I am working on a QR Code scanner. As soon as the QR Code is scanned, I can print the information on the screen with an alert. But what I want is to print the information in the code on a new page as soon as it is scanned in the camera.
Actions to be taken when opening the camera and scanning the qr code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,我们创建一个新页面,其中QR码中的信息将被传输。然后,我们将我的app.js页面与stack导航器集成在一起,以在页面之间启用过渡。
然后,我们进入“扫描仪”页面,从这里开始,我们将QR码转到扫描时的“扫描”页面。(此过程允许我们将QR码中的信息发送到“扫描”页面。
)最后一步,我们创建一个“过滤器”值,以在“扫描”页面上打印信息并将其显示在屏幕上。
First of all, we create a new page where the information in our QR code will be transferred. Then we integrate my App.js page with Stack Navigator to enable transition between pages.
Then we come to the 'Scanner' page and from here we make the QR code go to the 'Scanned' page when scanned.(This process allows us to send the information in the QR Code to the 'Scanned' page.)
As a final step, we create a 'filter' value to print the information on the 'Scanned' page and make it appear on the screen.