From c51f0b5f93f831a8b759ec526df256f6b8dd2929 Mon Sep 17 00:00:00 2001 From: Marcus Andersson Date: Wed, 20 Dec 2017 12:14:41 +0100 Subject: [PATCH] fixed so android cropping works in all orientations. --- Example/Example.js | 3 +-- .../com/lwansbrough/RCTCamera/MutableImage.java | 15 +++++++++++---- .../lwansbrough/RCTCamera/RCTCameraModule.java | 3 ++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Example/Example.js b/Example/Example.js index e86185b..0a58944 100644 --- a/Example/Example.js +++ b/Example/Example.js @@ -14,7 +14,6 @@ const styles = StyleSheet.create({ }, preview: { flex: 1, - alignSelf: "stretch", justifyContent: 'flex-end', alignItems: 'center' }, @@ -187,7 +186,7 @@ export default class Example extends React.Component { onZoomChanged={() => {}} defaultTouchToFocus mirrorImage={false} - cropToPreview={false} + cropToPreview={true} />