feat(ios): added CustomWhiteBalance type

This commit is contained in:
René Fischer 2020-03-25 14:48:19 +01:00
parent 3a9103694d
commit 9e9e12b05a

9
types/index.d.ts vendored
View File

@ -34,6 +34,13 @@ type WhiteBalance = Readonly<{
auto: any;
custom: any;
}>;
type CustomWhiteBalance = {
temperature: number;
tint: number;
redGainOffset?: number;
greenGainOffset?: number;
blueGainOffset?: number
};
type BarCodeType = Readonly<{
aztec: any;
code128: any;
@ -148,7 +155,7 @@ export interface RNCameraProps {
useCamera2Api?: boolean;
exposure?: number;
whiteBalance?: keyof WhiteBalance;
customWhiteBalance?: {temperature: number; tint: number; redGainOffset?: number; greenGainOffset?: number; blueGainOffset?: number };
customWhiteBalance?: CustomWhiteBalance;
captureAudio?: boolean;