React native React本机前置摄像头在某些Android设备上不工作

React native React本机前置摄像头在某些Android设备上不工作,react-native,react-native-camera,React Native,React Native Camera,目前,当我将typeprop设置为RNCamera.Constants.type.Front时,我的RNCamera在某些设备(Vsmart Joy 3,三星Note 8)上无法工作(显示黑屏),但在其他设备(小米Redmi Note 8 Pro)上工作正常 当我将type更改为RNCamera.Constants.type.Back时,相机在所有设备上都能正常工作。只有在使用前置摄像头时才会出现黑屏 我曾尝试将RNCamera与导航聚焦和聚焦结合起来,但似乎没有任何效果 所有设备都在安卓10上

目前,当我将
type
prop设置为
RNCamera.Constants.type.Front
时,我的RNCamera在某些设备(Vsmart Joy 3,三星Note 8)上无法工作(显示黑屏),但在其他设备(小米Redmi Note 8 Pro)上工作正常

当我将
type
更改为
RNCamera.Constants.type.Back
时,相机在所有设备上都能正常工作。只有在使用前置摄像头时才会出现黑屏

我曾尝试将RNCamera与导航聚焦和
聚焦
结合起来,但似乎没有任何效果

所有设备都在安卓10上运行。以下是我当前的react-native和react-native相机版本:

"react-native": "0.61.4",
"react-native-camera": "^3.40.0",
以下是我的RNCamera代码片段:

          <RNCamera
            ref={this.refCamera}
            captureAudio={false}
            style={styles.preview}
            type={RNCamera.Constants.Type.front}
            faceDetectionClassifications={'all'}
            faceDetectionMode={'accurate'}
            onFacesDetected={this.onFaceDetected}
            androidCameraPermissionOptions={{
              title: 'Permission to use camera',
              message: 'We need your permission to use your camera',
              buttonPositive: 'Ok',
              buttonNegative: 'Cancel',
            }}
            androidRecordAudioPermissionOptions={{
              title: 'Permission to use audio recording',
              message: 'We need your permission to use your audio',
              buttonPositive: 'Ok',
              buttonNegative: 'Cancel',
            }}
          />
        )}

还有其他人遇到过这个问题吗?提前非常感谢。

收到同样的问题。。你有什么发现吗?
  preview: {
    width: screen.width,
    height: screen.height * 0.68,
    borderRadius: 12,
  },