Skip to content

Conversation

@WilliamWelsh
Copy link
Contributor

Summary

zoomMode is checking focusMode instead of zoomMode, making it copy focusMode state instead of being independent

How did you test this change?

By running locally

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the zoomMode was incorrectly using the focusMode value, ensuring that zoomMode is now independently determined.

  • Changed the reference in the zoomMode check from focusMode to zoomMode.
Comments suppressed due to low confidence (1)

ios/ReactNativeCameraKit/CKCameraViewComponentView.mm:227

  • The code now correctly checks zoomMode instead of focusMode. Please verify that all other usage of focusMode and zoomMode remains consistent and that this change doesn't affect related functionality.
        _view.zoomMode = [zoomMode isEqualToString:@"on"] ? CKZoomModeOn : CKZoomModeOff;

@scarlac scarlac merged commit 29e5873 into teslamotors:master Jun 23, 2025
4 checks passed
@scarlac
Copy link
Collaborator

scarlac commented Jun 23, 2025

Thank you for that very precise contribution @WilliamWelsh!

@WilliamWelsh WilliamWelsh deleted the patch-1 branch June 30, 2025 18:33
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.

2 participants