🐛 `scaleX` transforms applied on Camera don't works on Android
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
- [x] I am using Expo
- [ ] I have enabled Frame Processors (react-native-worklets-core)
- [x] I have read the Troubleshooting Guide
- [x] I agree to follow this project's Code of Conduct
- [x] I searched for similar issues in this repository and found none.
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
@mrousavyto take a look.
@mrousavy logs are attached in a gist.