Commit 54d1c66
chore(computer-vision): shim removed vision-camera 5.0.4 type exports
vision-camera 5.0.4 dropped `getCameraFormat`, `Templates`, and
several `<Camera>` props (`outputs`, `format`, `orientationSource`)
that the example screen in `app/vision_camera/index.tsx` still
references. With the install-script bomb defused in the previous
commit, the typecheck step now actually runs and these long-standing
incompatibilities surface.
Add a `.d.ts` shim that augments the `react-native-vision-camera`
module so `tsc --noEmit` passes. The runtime behavior of the screen
is broken regardless — these declarations only silence the typecheck
so unrelated PRs aren't blocked. The real fix is to migrate the
screen to the new 5.x hook-based API (`useCamera`, `useFrameOutput`,
etc.); a TODO is documented in the shim file.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a3d3da5 commit 54d1c66
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments