Removes legacy compatibility with a new feature. This was overlooked and should not have been included.
This commit is contained in:
parent
e358622ff2
commit
6d21e8e50f
|
@ -113,18 +113,12 @@ var Camera = React.createClass({
|
||||||
type: {
|
type: {
|
||||||
Front: 'front',
|
Front: 'front',
|
||||||
Back: 'back'
|
Back: 'back'
|
||||||
},
|
|
||||||
flashMode: {
|
|
||||||
Off: 'off',
|
|
||||||
On: 'on',
|
|
||||||
Auto: 'auto'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var foundLegacyAspect = legacyProps.aspect[aspect];
|
var foundLegacyAspect = legacyProps.aspect[aspect];
|
||||||
var foundLegacyOrientation = legacyProps.orientation[orientation];
|
var foundLegacyOrientation = legacyProps.orientation[orientation];
|
||||||
var foundLegacyType = legacyProps.type[type];
|
var foundLegacyType = legacyProps.type[type];
|
||||||
var foundLegacyFlashMode = legacyProps.flashMode[flashMode];
|
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
if (foundLegacyAspect) {
|
if (foundLegacyAspect) {
|
||||||
|
@ -145,6 +139,10 @@ var Camera = React.createClass({
|
||||||
aspect = constants.Aspect[aspect];
|
aspect = constants.Aspect[aspect];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof flashMode === 'string') {
|
||||||
|
flashMode = constants.FlashMode[flashMode];
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof orientation === 'string') {
|
if (typeof orientation === 'string') {
|
||||||
orientation = constants.Orientation[orientation];
|
orientation = constants.Orientation[orientation];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue