From 6d21e8e50faa23385d5438cacc198079c478dca3 Mon Sep 17 00:00:00 2001 From: Lochlan Wansbrough Date: Thu, 2 Jul 2015 13:07:32 -0700 Subject: [PATCH] Removes legacy compatibility with a new feature. This was overlooked and should not have been included. --- Camera.ios.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Camera.ios.js b/Camera.ios.js index 243f0bd..e611182 100644 --- a/Camera.ios.js +++ b/Camera.ios.js @@ -113,18 +113,12 @@ var Camera = React.createClass({ type: { Front: 'front', Back: 'back' - }, - flashMode: { - Off: 'off', - On: 'on', - Auto: 'auto' } }; var foundLegacyAspect = legacyProps.aspect[aspect]; var foundLegacyOrientation = legacyProps.orientation[orientation]; var foundLegacyType = legacyProps.type[type]; - var foundLegacyFlashMode = legacyProps.flashMode[flashMode]; if (__DEV__) { if (foundLegacyAspect) { @@ -144,6 +138,10 @@ var Camera = React.createClass({ if (typeof aspect === 'string') { aspect = constants.Aspect[aspect]; } + + if (typeof flashMode === 'string') { + flashMode = constants.FlashMode[flashMode]; + } if (typeof orientation === 'string') { orientation = constants.Orientation[orientation];