cameraview icon indicating copy to clipboard operation
cameraview copied to clipboard

Add a getter to get the camera orientation relative to the devices native orientation

Open matt-oakes opened this issue 6 years ago • 1 comments
trafficstars

This is useful for when you are using the image data from the onFramePreview callback and need to correct the image rotation before sending it through to something like the Mobile Vision SDK.

The lack of this was causing libraries to make assumptions about the camera orientation which causes bugs like this: https://github.com/react-native-community/react-native-camera/issues/1714

matt-oakes avatar Jan 11 '19 12:01 matt-oakes

I realised that just after I made this. I've opened a PR over there including both parts https://github.com/react-native-community/react-native-camera/pull/2050

matt-oakes avatar Jan 11 '19 13:01 matt-oakes