Munchable patches expo-camera by hand to add tap-to-focus, and the version pin lives in four places
Munchable's label scanner needs tap-to-focus, which the upstream expo-camera package does not provide, so the repository carries a small patch to the package. The patch is declared in two config lines, and the author details how it spans native Kotlin and Swift code plus JavaScript source, compiled output, and type declarations that must all be edited together. Patching was chosen over forking, a config plugin, or a separate native module because the patch is reproducible from the lockfile, which records it by content hash. The version string must match in four places, and pnpm's install fails loudly if a patch key names a version that is not installed. The author fixed a bug in these config lines that no tool in the repository could have caught.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in