react-native-vision-camera-v3-image-labeling
Advanced tools
Comparing version 1.2.1 to 1.5.0
@@ -25,3 +25,3 @@ "use strict"; | ||
} = useImageLabeler(options); | ||
const useWorklets = (0, _reactNativeWorkletsCore.useRunInJS)(data => { | ||
const useWorklets = (0, _reactNativeWorkletsCore.useRunOnJS)(data => { | ||
callback(data); | ||
@@ -28,0 +28,0 @@ }, [options]); |
@@ -5,3 +5,3 @@ 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 { createImageLabelerPlugin } from './scanImage'; | ||
import { useRunInJS } from 'react-native-worklets-core'; | ||
import { useRunOnJS } from 'react-native-worklets-core'; | ||
export const Camera = /*#__PURE__*/forwardRef(function Camera(props, ref) { | ||
@@ -17,3 +17,3 @@ const { | ||
} = useImageLabeler(options); | ||
const useWorklets = useRunInJS(data => { | ||
const useWorklets = useRunOnJS(data => { | ||
callback(data); | ||
@@ -20,0 +20,0 @@ }, [options]); |
{ | ||
"name": "react-native-vision-camera-v3-image-labeling", | ||
"version": "1.2.1", | ||
"version": "1.5.0", | ||
"description": "The frame processor plugin to image labeling using Google ML Kit library for react-native-vision-camera with high performance.", | ||
@@ -73,3 +73,3 @@ "main": "lib/commonjs/index", | ||
"react-native-vision-camera": "4.0.1", | ||
"react-native-worklets-core": "1.1.1", | ||
"react-native-worklets-core": "1.2.0", | ||
"release-it": "^15.0.0", | ||
@@ -76,0 +76,0 @@ "turbo": "^1.10.7", |
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
36057
34