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];