Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

Commit c3c9e62

Browse files
authored
fix: add missing types (#353)
1 parent d4ee689 commit c3c9e62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
import { Component } from 'react';
77
import { ViewStyle, StyleProp } from 'react-native';
8-
import { RNCameraProps, BarCodeReadEvent } from 'react-native-camera';
8+
import { RNCameraProps, BarCodeReadEvent, Constants } from 'react-native-camera';
99

1010
export interface RNQRCodeScannerProps {
1111
onRead(e: BarCodeReadEvent): void;
@@ -18,6 +18,7 @@ export interface RNQRCodeScannerProps {
1818
customMarker?: JSX.Element;
1919
containerStyle?: StyleProp<ViewStyle>;
2020
cameraStyle?: StyleProp<ViewStyle>;
21+
cameraContainerStyle?: StyleProp<ViewStyle>;
2122
markerStyle?: StyleProp<ViewStyle>;
2223
topViewStyle?: StyleProp<ViewStyle>;
2324
bottomViewStyle?: StyleProp<ViewStyle>;
@@ -28,6 +29,7 @@ export interface RNQRCodeScannerProps {
2829
permissionDialogMessage?: string;
2930
buttonPositive?: string;
3031
checkAndroid6Permissions?: boolean;
32+
flashMode?: keyof Constants['FlashMode'];
3133
cameraProps?: RNCameraProps;
3234
cameraTimeout?: number;
3335
cameraTimeoutView?: JSX.Element;

0 commit comments

Comments
 (0)