每当我导航到相机组件时,博览应用程序就会崩溃。我正在使用世博sdk 43,这只发生在世博自定义开发客户端,但工作良好的博览去应用。
import { Camera } from "expo-camera";
import * as FaceDetector from "expo-face-detector";
export default app = ()=>{
const handleFaceDetection = ({faces}) => console.log(faces);
return <Camera
style={styles.camera}
type={Camera.Constants.Type.front}
onFacesDetected={handleFaceDetection}
faceDetectorSettings={{
mode: FaceDetector.FaceDetectorMode.fast,
detectLandmarks: FaceDetector.FaceDetectorLandmarks.none,
runClassifications:
FaceDetector.FaceDetectorClassifications.none,
minDetectionInterval: 500,
tracking: true,
}}
/>;
};发布于 2022-10-13 08:45:13
每次向项目添加本机依赖项时,都必须重新构建dev-client。
eas build --platform android --profile development它在“世博围棋”中运行得很好,因为整个世博SDK已经捆绑在应用程序中了。
https://stackoverflow.com/questions/71976849
复制相似问题