File tree Expand file tree Collapse file tree
packages/react-native-executorch/src/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,20 +102,4 @@ export abstract class BaseModule {
102102 this . nativeModule . unload ( ) ;
103103 }
104104 }
105-
106- /**
107- * Bind JSI methods to this instance for worklet compatibility.
108- *
109- * This makes native JSI functions accessible from worklet threads,
110- * which is essential for VisionCamera frame processing.
111- *
112- * @internal
113- */
114- protected bindJSIMethods ( ) {
115- if ( this . nativeModule && this . nativeModule . generateFromFrame ) {
116- // Bind the native JSI method directly to this instance
117- // This makes it worklet-compatible since JSI functions work across threads
118- this . generateFromFrame = this . nativeModule . generateFromFrame ;
119- }
120- }
121105}
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export class ObjectDetectionModule extends BaseModule {
2828 onDownloadProgressCallback ,
2929 model . modelSource
3030 ) ;
31-
3231 if ( ! paths ?. [ 0 ] ) {
3332 throw new RnExecutorchError (
3433 RnExecutorchErrorCode . DownloadInterrupted ,
You can’t perform that action at this time.
0 commit comments