-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Unable to set minimum zoom on first render #3027
Comments
Guten Tag, Hans here. Note New features, bugfixes, updates and other improvements are all handled mostly by |
Hey - I created a PR to potentially fix this: #3066 Can you test if this fixes the issue for you? |
Thanks for the logs btw. A lot of people simply don't get this, but I just read the logs and I can understand what went wrong. |
Hi @mrousavy, Here's the log from the camera initialization (the "test" log is a
|
Hmm, okay then we need to reopen. |
What's happening?
Hi!
I'm trying to have the back camera to have the minimum zoom from the start.
Setting
zoom={device.minZoom}
does not seem to work as the preview is still the neutral one.Disabling the preview also produces incorrect photos.
I've noticed that enabling the
preview
prop after the Camera has mounted display the preview with the correct zoom.Another weird behavior is if
enableZoomGesture
is enabled and the zoom is changed by pinching. When disabling then reenabling the preview then the bug is there as the view is once again in neutral mode.❗ While the preview is displaying a neutral preview when it should not. The zoom level with pinch is correct. Which means I have a neutral zoom preview but can only pinch to zoom in.
I've managed to reproduce this behavior in the example app. I've added
zoom={device.minZoom}
to the camera component but when opening the app I have the neutral zoom.I've also managed to reproduce this behavior with both v4.3.2 /react-native v0.74.2 and v4.3.1/react-native v0.73.8
Please let me know if the logs from logcat are incomplete. There are lots of logs and I tried to only paste what might be relevant which is the logs from the camera initialization.
Cheers
Reproduceable Code
Relevant log output
Camera Device
Device
Pixel 6 Pro
VisionCamera Version
4.3.2
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: