@yudiel/react-qr-scanner
Advanced tools
Comparing version 1.1.2 to 1.1.3
import type { CSSProperties, ReactElement } from 'react'; | ||
import { IUseQrScannerProps } from '../hooks/useQrScanner'; | ||
import { OnResultFunction } from '../types'; | ||
export interface IQrScannerProps extends Omit<IUseQrScannerProps, 'onResult'> { | ||
import { DecodeHintType } from '@zxing/library'; | ||
import { OnErrorFunction, OnResultFunction } from '../types'; | ||
export interface IQrScannerProps { | ||
onError: OnErrorFunction; | ||
onResult?: OnResultFunction; | ||
containerStyle?: CSSProperties; | ||
videoStyle?: CSSProperties; | ||
onResult?: OnResultFunction; | ||
onDecode?: (result: string) => void; | ||
@@ -13,3 +14,7 @@ viewFinder?: (props: any) => ReactElement | null; | ||
viewFinderBorder?: number; | ||
constraints?: MediaTrackConstraints; | ||
scanDelay?: number; | ||
deviceId?: string; | ||
hints?: Map<DecodeHintType, any>; | ||
} | ||
export declare const QrScanner: (props: IQrScannerProps) => JSX.Element; |
import type { CSSProperties, ReactElement } from 'react'; | ||
import { IUseQrScannerProps } from '../hooks/useQrScanner'; | ||
import { OnResultFunction } from '../types'; | ||
export interface IQrScannerProps extends Omit<IUseQrScannerProps, 'onResult'> { | ||
import { DecodeHintType } from '@zxing/library'; | ||
import { OnErrorFunction, OnResultFunction } from '../types'; | ||
export interface IQrScannerProps { | ||
onError: OnErrorFunction; | ||
onResult?: OnResultFunction; | ||
containerStyle?: CSSProperties; | ||
videoStyle?: CSSProperties; | ||
onResult?: OnResultFunction; | ||
onDecode?: (result: string) => void; | ||
@@ -13,3 +14,7 @@ viewFinder?: (props: any) => ReactElement | null; | ||
viewFinderBorder?: number; | ||
constraints?: MediaTrackConstraints; | ||
scanDelay?: number; | ||
deviceId?: string; | ||
hints?: Map<DecodeHintType, any>; | ||
} | ||
export declare const QrScanner: (props: IQrScannerProps) => JSX.Element; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { CSSProperties, ReactElement } from 'react'; | ||
@@ -8,15 +7,7 @@ import { Result, DecodeHintType } from '@zxing/library'; | ||
interface IUseQrScannerProps { | ||
onResult: OnResultFunction; | ||
interface IQrScannerProps { | ||
onError: OnErrorFunction; | ||
scanDelay: number; | ||
constraints: MediaTrackConstraints; | ||
deviceId?: string; | ||
hints?: Map<DecodeHintType, any>; | ||
} | ||
interface IQrScannerProps extends Omit<IUseQrScannerProps, 'onResult'> { | ||
onResult?: OnResultFunction; | ||
containerStyle?: CSSProperties; | ||
videoStyle?: CSSProperties; | ||
onResult?: OnResultFunction; | ||
onDecode?: (result: string) => void; | ||
@@ -27,2 +18,6 @@ viewFinder?: (props: any) => ReactElement | null; | ||
viewFinderBorder?: number; | ||
constraints?: MediaTrackConstraints; | ||
scanDelay?: number; | ||
deviceId?: string; | ||
hints?: Map<DecodeHintType, any>; | ||
} | ||
@@ -29,0 +24,0 @@ declare const QrScanner: (props: IQrScannerProps) => JSX.Element; |
{ | ||
"name": "@yudiel/react-qr-scanner", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A library to scan qr codes in react.", | ||
@@ -5,0 +5,0 @@ "author": "Yudiel Curbelo", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4209747
2948