Skip to content

feat: Add native tap-to-focus lifecycle listeners - #4172

Merged
mrousavy merged 2 commits into
mainfrom
feat/native-tap-focus-listeners
Aug 26, 2026
Merged

feat: Add native tap-to-focus lifecycle listeners#4172
mrousavy merged 2 commits into
mainfrom
feat/native-tap-focus-listeners

Conversation

@mrousavy

Copy link
Copy Markdown
Owner

Summary

  • expose addOnTapListener(...) and addOnFocusCompletedListener(...) on TapToFocusGestureController
  • emit the native MeteringPoint immediately before focusing starts
  • emit focus completion after iOS MeteringTask or CameraX focus resolves
  • report Android tap coordinates in React Native logical units
  • leave focus-reset events out of this PR

Test plan

  • bun camera specs
  • bun run lint-all
  • bun camera typecheck
  • bun camera build
  • ./apps/simple-camera/android/gradlew -p apps/simple-camera/android :react-native-vision-camera:assembleDebug --no-daemon --console=plain
  • bun example pods
  • xcodebuild -workspace SimpleCamera.xcworkspace -scheme VisionCamera -sdk iphonesimulator -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath build CODE_SIGNING_ALLOWED=NO build -quiet

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview Aug 24, 2026 4:05pm

Request Review

@mrousavy
mrousavy merged commit 050ceac into main Aug 26, 2026
8 of 10 checks passed
@mrousavy
mrousavy deleted the feat/native-tap-focus-listeners branch August 26, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant