-
-
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
Android 11 camera stretched 🐛 #2631
Comments
Did you try 3.9.1? There might be a fix for this issue in there but I have not verified my self. Had same issue on android 10 device |
Yes I tried but I got same error |
I'm using class component added this style in the Camera component:
and this in componentDidMount:
|
This is working on a functional component 👍 (I've tested on samsung galaxy s10 with Android 10 and Oneplus 7 running Android 12) 🎉 |
This worked also for me both for android 11 and android 13 thanks. |
I covered the component that contains the camera with a condition of a boolean value, but with this trick now the app sometimes crash. This is the code that call the component:
And this is the component of before:
There isn't also a way to disable the camera component without create each time a new component? Or a way to resolve in my way, with an external value? |
Duplicate of #2583 |
the hack is working, I was also facing the same issue. Tq for the help.......... |
What's happening?
Hi,
I'm using react-native-vision-camera on my app and I noticed that the camera in android 11 is stretched, but not in android 13. I'm using version 3.9.0 of the package.
I noticed that if use the component in this way for example:
<Camera device={device} isActive={true} style={{width: 500, height: 500}} />
And I change the height and I save, the camera is ok, but when I close it and I reopen it is again stretched.
I also installed the shadow lens app suggested in readme and I found the same error if can help.
(I'm trying to make the error happens in the example app, but I'm having starting the project, I'm trying to resolve it. If you need to check the error you can check in the shadow lens app)
Can you help me with that?
Thanks.
Reproduceable Code
Relevant log output
Camera Device
Device
Xiaomi Mi A3
VisionCamera Version
3.9.0
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: