r/reactnative • u/Miserable-Pause7650 • Oct 13 '26
Question React native vision camera v5 zoomLensSwitchFactors not correct
Basically Im trying to get the zoom levels that switches the physical cameras, and Im using iPhone 15 Pro, which has the native x0.5, x1, x2, x3 zooms. But somehow when I log out the zoomLensSwitchFactors, I get
[2, 6]
Here is the code
const deviceBack: CameraDevice | undefined = useCameraDevice("back", {
physicalDevices: ["ultra-wide-angle", "wide-angle", "telephoto"],
});
console.log("zoomLensSwitchFactors", deviceBack.zoomLensSwitchFactors);Ideally I would like to have [0.5, 1, 2, 3], or something similar. Also, the minZoom and maxZoom give me 1 and 189 respectively. shouldn't the min be 0.5?
Also wondering if this works for the front camera
3
Upvotes
View all comments
Show parent comment
2
u/Miserable-Pause7650 Oct 13 '26
Thanks for the answer :) Noted on the 2x being an optical rather than a physical zoom. Seeing the 2, 6 as a ratio does make sense. However, shouldnt there be 3 numbers since there is a 0.5 as well?
My guess is that I can use the minZoom as the wide angle since it gives 1, then I have 2 and 6.
So if I take 2 as the base, it becomes 0.5, 1, 3 which tallys.
But this is just my guess, idk if it serves all phone models including android