简体   繁体   English

onTextRecognized 前置摄像头应用程序崩溃没有日志 React Native android

[英]onTextRecognized front camera app crash without log React Native android

I have switched from back camera to front camera, React native camera but it will crash without any log.我已经从后置摄像头切换到前置摄像头,React 原生摄像头,但它会在没有任何日志的情况下崩溃。 Here is the following code.这是以下代码。

 <RNCamera
                          ref={ref}
                            autoFocus={RNCamera.Constants.AutoFocus.on}
                         
                            type={RNCamera.Constants.Type.front}
                            androidCameraPermissionOptions={{
                                title: 'Permission to use camera',
                                message: 'We need your permission to use your camera',
                                buttonPositive: 'Ok',
                                buttonNegative: 'Cancel',
                            }}

                            onTextRecognized={({textBlocks})=>{console.log(textBlocks)}}

Facing same issue.面临同样的问题。 Whenever I open camera and the line每当我打开相机和线路

onTextRecognized={({textBlocks})=>{console.log("textBlocks===", textBlocks)}}

craches the app.破解应用程序。 without showing any error in logs.没有在日志中显示任何错误。 Whenever I comment this line.每当我评论这一行时。 App works fine应用程序运行良好

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

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