最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

react native - App crashes on Android while navigating to the another screen - Stack Overflow

programmeradmin3浏览0评论

The screen needs to use camera and loads the machine learning model. I am using "react-native-vision-camera". And similarly load tenserflow.js and react-native-worklets-core.

I expect to open that screen and open the camera.

This is the screen:

import React, { useEffect, useState, useRef } from 'react';
import { View, StyleSheet, PermissionsAndroid, Platform, LogBox, Text } from 'react-native';
import { Camera, useCameraDevices, useFrameProcessor } from 'react-native-vision-camera';
import { runOnJS } from 'react-native-reanimated';
import '@tensorflow/tfjs-react-native';
import * as tf from '@tensorflow/tfjs';
import * as poseDetection from '@tensorflow-models/pose-detection';
发布评论

评论列表(0)

  1. 暂无评论