Manage Camera stretching problem in android device.
Tech@rt Developers
Camera seems fine in ios but in android its stretched. Solution found on net: To keep ration "16:9" but still its stretched in front camera.
Brent Vatne
you can refer to the usage of camera (for qr code scanner) in expo client for an example of how to size it appropriately based on aspect ratio: https://github.com/expo/expo/blob/1e001f80d902303a40e370c7b996b01c3b088119/home/components/Camera.android.tsx
we should have an option to do this automatically, but for now that's a good workaround
Eduard Duluman
Yup, this would be nice to have, and probably an easy fix, like it just works on iOS.
Brent Vatne
you can refer to the usage of camera (for qr code scanner) in expo client for an example of how to size it appropriately based on aspect ratio: https://github.com/expo/expo/blob/1e001f80d902303a40e370c7b996b01c3b088119/home/components/Camera.android.tsx
we should have an option to do this automatically, but for now that's a good workaround