feat: Better Native Module Error Detection (#1515)

* feat: Add more Error insights when the Camera Module cannot be found

* Assert JSI is available

* Update error description

* fix

* Update CameraError.ts
This commit is contained in:
Marc Rousavy
2023-03-13 14:21:08 +01:00
committed by GitHub
parent 622d3830f1
commit f791c6b4cd
5 changed files with 72 additions and 20 deletions

View File

@@ -1,6 +1,9 @@
import type { Frame, FrameInternal } from './Frame';
import { Camera } from './Camera';
import { Worklets } from 'react-native-worklets/src';
import { assertJSIAvailable } from './JSIHelper';
assertJSIAvailable();
// Install VisionCamera Frame Processor JSI Bindings and Plugins
Camera.installFrameProcessorBindings();