From b01c64e7734827da3f4c61e5f7225f70b454c945 Mon Sep 17 00:00:00 2001 From: Gonzalo Aguirre Date: Tue, 13 Sep 2016 13:48:48 -0300 Subject: [PATCH] Mirror image for Android (#399) * Add mirrorImage support for Android * Release resources after mirroring * Mirror image only for TYPE_FRONT * Remove unnecessary annotation * Document mirrorImage for Android * Improved compression and error handling * Add support for mirroring on Android back camera too --- Example/Example.js | 1 + Example/android/settings.gradle | 2 +- README.md | 4 +- .../RCTCamera/RCTCameraModule.java | 82 ++++++++++++++++++- index.js | 1 + 5 files changed, 83 insertions(+), 7 deletions(-) diff --git a/Example/Example.js b/Example/Example.js index 03ade41..d3f44ab 100644 --- a/Example/Example.js +++ b/Example/Example.js @@ -189,6 +189,7 @@ export default class Example extends React.Component { type={this.state.camera.type} flashMode={this.state.camera.flashMode} defaultTouchToFocus + mirrorImage={false} />