fix constants in defaultProps
This commit is contained in:
parent
d786581d08
commit
8b25689456
14
Camera.js
14
Camera.js
|
@ -88,15 +88,15 @@ export default class Camera extends Component {
|
|||
};
|
||||
|
||||
static defaultProps = {
|
||||
aspect: Camera.constants.Aspect.fill,
|
||||
type: Camera.constants.Type.back,
|
||||
orientation: Camera.constants.Orientation.auto,
|
||||
aspect: CameraManager.Aspect.fill,
|
||||
type: CameraManager.Type.back,
|
||||
orientation: CameraManager.Orientation.auto,
|
||||
captureAudio: true,
|
||||
captureMode: Camera.constants.CaptureMode.still,
|
||||
captureTarget: Camera.constants.CaptureTarget.cameraRoll,
|
||||
captureMode: CameraManager.CaptureMode.still,
|
||||
captureTarget: CameraManager.CaptureTarget.cameraRoll,
|
||||
defaultOnFocusComponent: true,
|
||||
flashMode: Camera.constants.FlashMode.off,
|
||||
torchMode: Camera.constants.TorchMode.off
|
||||
flashMode: CameraManager.FlashMode.off,
|
||||
torchMode: CameraManager.TorchMode.off
|
||||
};
|
||||
|
||||
static checkDeviceAuthorizationStatus = CameraManager.checkDeviceAuthorizationStatus;
|
||||
|
|
Loading…
Reference in New Issue