mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-23 17:28:08 +00:00
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: {
|
||||
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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user