Skip to content

Commit 82e968b

Browse files
authored
fix: useExecutorchModule not working (#637)
## Description fix useExecutorchModule ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [x] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [ ] Other (chores, tests, code style improvements etc.) ### Tested on - [x] iOS - [ ] Android ### Checklist - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [x] My changes generate no new warnings
1 parent 2ba78d8 commit 82e968b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-native-executorch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-executorch",
3-
"version": "0.5.8",
3+
"version": "0.5.9",
44
"description": "An easy way to run AI models in React Native with ExecuTorch",
55
"source": "./src/index.ts",
66
"main": "./lib/module/index.js",

packages/react-native-executorch/src/hooks/general/useExecutorchModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export const useExecutorchModule = ({
1313
}: Props) =>
1414
useModule({
1515
module: ExecutorchModule,
16-
model: { modelSource },
16+
model: modelSource,
1717
preventLoad,
1818
});

0 commit comments

Comments
 (0)