fix passing cameraOptions and default overlay color

This commit is contained in:
aksonov 2017-08-04 14:02:53 +02:00
parent 4f72a00c0e
commit 21a3853e36
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ const GalleryManager = IsIOS ? NativeModules.CKGalleryManager : NativeModules.Na
const FLASH_MODE_AUTO = 'auto';
const FLASH_MODE_ON = 'on';
const FLASH_MODE_OFF = 'off';
const OVERLAY_DEFAULT_COLOR = '#ffffff77';
export default class CameraScreenBase extends Component {
@ -76,7 +77,7 @@ export default class CameraScreenBase extends Component {
}
getCameraOptions() {
const cameraOptions = {
const cameraOptions = this.props.cameraOptions || {
flashMode: 'auto',
focusMode: 'on',
zoomMode: 'on'