Removes legacy compatibility with a new feature. This was overlooked and should not have been included.

This commit is contained in:
Lochlan Wansbrough 2015-07-02 13:07:32 -07:00
parent e358622ff2
commit 6d21e8e50f
1 changed files with 4 additions and 6 deletions

View File

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