Socket
Socket
Sign inDemoInstall

react-native-vision-camera-v3-text-recognition

Package Overview
Dependencies
522
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

11

lib/commonjs/index.js

@@ -7,9 +7,10 @@ "use strict";

exports.Camera = void 0;
var _react = _interopRequireDefault(require("react"));
var _react = _interopRequireWildcard(require("react"));
var _reactNativeVisionCamera = require("react-native-vision-camera");
var _reactNativeWorkletsCore = require("react-native-worklets-core");
var _scanText = require("./scanText");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
const Camera = props => {
const Camera = exports.Camera = /*#__PURE__*/(0, _react.forwardRef)(function Camera(props, ref) {
const {

@@ -34,6 +35,6 @@ callback,

return !!device && /*#__PURE__*/_react.default.createElement(_reactNativeVisionCamera.Camera, _extends({
ref: ref,
frameProcessor: frameProcessor
}, props));
};
exports.Camera = Camera;
});
//# sourceMappingURL=index.js.map
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React from 'react';
import React, { forwardRef } from 'react';
import { Camera as VisionCamera, useFrameProcessor } from 'react-native-vision-camera';
import { useRunInJS } from 'react-native-worklets-core';
import { scanText } from './scanText';
export const Camera = props => {
export const Camera = /*#__PURE__*/forwardRef(function Camera(props, ref) {
const {

@@ -26,5 +26,6 @@ callback,

return !!device && /*#__PURE__*/React.createElement(VisionCamera, _extends({
ref: ref,
frameProcessor: frameProcessor
}, props));
};
});
//# sourceMappingURL=index.js.map
import React from 'react';
import type { CameraTypes } from './types';
export declare const Camera: (props: CameraTypes) => React.JSX.Element;
export declare const Camera: React.ForwardRefExoticComponent<{
callback: Function;
options: import("./types").TextRecognitionOptions;
} & import("react-native-vision-camera").CameraProps & React.RefAttributes<any>>;
//# sourceMappingURL=index.d.ts.map
{
"name": "react-native-vision-camera-v3-text-recognition",
"version": "1.0.3",
"version": "1.0.4",
"description": "The frame processor plugin for text recognition using Google ML Kit library for react-native-vision-camera with high performance.",

@@ -5,0 +5,0 @@ "main": "lib/commonjs/index",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc