Skip to main content
Version: 0.7.x

Function: useExecutorchModule()

useExecutorchModule(executorchModuleProps): ExecutorchModuleType

Defined in: packages/react-native-executorch/src/hooks/general/useExecutorchModule.ts:15

React hook for managing an arbitrary Executorch module instance.

Parameters

executorchModuleProps

ExecutorchModuleProps

Configuration object containing modelSource and optional preventLoad flag.

Returns

ExecutorchModuleType

Ready to use Executorch module.