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

Commit

Permalink
fix: add missing types (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
masaki-koide committed Oct 29, 2021
1 parent d4ee689 commit c3c9e62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Expand Up @@ -5,7 +5,7 @@
*/
import { Component } from 'react';
import { ViewStyle, StyleProp } from 'react-native';
import { RNCameraProps, BarCodeReadEvent } from 'react-native-camera';
import { RNCameraProps, BarCodeReadEvent, Constants } from 'react-native-camera';

export interface RNQRCodeScannerProps {
onRead(e: BarCodeReadEvent): void;
Expand All @@ -18,6 +18,7 @@ export interface RNQRCodeScannerProps {
customMarker?: JSX.Element;
containerStyle?: StyleProp<ViewStyle>;
cameraStyle?: StyleProp<ViewStyle>;
cameraContainerStyle?: StyleProp<ViewStyle>;
markerStyle?: StyleProp<ViewStyle>;
topViewStyle?: StyleProp<ViewStyle>;
bottomViewStyle?: StyleProp<ViewStyle>;
Expand All @@ -28,6 +29,7 @@ export interface RNQRCodeScannerProps {
permissionDialogMessage?: string;
buttonPositive?: string;
checkAndroid6Permissions?: boolean;
flashMode?: keyof Constants['FlashMode'];
cameraProps?: RNCameraProps;
cameraTimeout?: number;
cameraTimeoutView?: JSX.Element;
Expand Down

0 comments on commit c3c9e62

Please sign in to comment.