react-native-vision-camera
Version:
A powerful, high-performance React Native Camera library.
15 lines (14 loc) • 762 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.assertJSIAvailable = assertJSIAvailable;
var _CameraError = require("./CameraError");
function assertJSIAvailable() {
// Check if we are running on-device (JSI)
// @ts-expect-error JSI functions aren't typed
if (global.nativeCallSyncHook == null) {
throw new _CameraError.CameraRuntimeError('system/frame-processors-unavailable', 'Failed to initialize VisionCamera Frame Processors: React Native is not running on-device. Frame Processors can only be used when synchronous method invocations (JSI) are possible. If you are using a remote debugger (e.g. Chrome), switch to an on-device debugger (e.g. Flipper) instead.');
}
}
//# sourceMappingURL=JSIHelper.js.map
;