react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

🐛 `scaleX` transforms applied on Camera don't works on Android

Open MatteoGauthier opened this issue 9 months ago • 2 comments

What's happening?

Applying transform: [{scaleX:-1}] to a Camera component don't works on Android device.

Reproduceable Code

In the example folder in this this fork https://github.com/MatteoGauthier/react-native-vision-camera/tree/repro/scale-x-camera

Relevant log output

https://gist.github.com/MatteoGauthier/4cd9e34635ea0d40ae4a112e436b8e02

Camera Device

{
  "formats": [],
  "sensorOrientation": "landscape-left",
  "hardwareLevel": "limited",
  "maxZoom": 8,
  "minZoom": 1,
  "maxExposure": 20,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "ultra-wide-angle-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minFocusDistance": 0,
  "minExposure": -20,
  "name": "2 (BACK) androidx.camera.camera2",
  "hasFlash": false,
  "hasTorch": false,
  "position": "back",
  "id": "2"
}

Device

Samsung A54

VisionCamera Version

4.6.3

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

MatteoGauthier avatar Mar 28 '25 15:03 MatteoGauthier

Guten Tag, Hans here! 🍻
Thanks for reporting your issue. However, it seems you haven't provided any relevant log output. This makes it difficult for mrousavy to diagnose the problem. Please gather the logs from your Android device using adb logcat, and include them here. That will help a lot in figuring out what is going wrong. Looking forward to ze additional information!

Note: If you think I made a mistake, please ping @mrousavy to take a look.

maintenance-hans[bot] avatar Mar 28 '25 15:03 maintenance-hans[bot]

@mrousavy logs are attached in a gist.

seanquinn avatar Mar 31 '25 09:03 seanquinn