expo-camera
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -106,4 +106,4 @@ import PropTypes from 'prop-types'; | ||
takePictureAsync(options?: PictureOptions): Promise<CapturedPicture>; | ||
getSupportedRatiosAsync(): Promise<Array<string>>; | ||
getAvailablePictureSizesAsync(ratio?: string): Promise<Array<string>>; | ||
getSupportedRatiosAsync(): Promise<string[]>; | ||
getAvailablePictureSizesAsync(ratio?: string): Promise<string[]>; | ||
recordAsync(options?: RecordingOptions): Promise<{ | ||
@@ -110,0 +110,0 @@ uri: string; |
@@ -17,2 +17,3 @@ import { ViewProps } from 'react-native'; | ||
mute?: boolean; | ||
mirror?: boolean; | ||
}; | ||
@@ -49,5 +50,5 @@ export declare type CapturedPicture = { | ||
onMountError?: (event: MountError) => void; | ||
barCodeScannerSettings?: {}; | ||
barCodeScannerSettings?: object; | ||
onBarCodeScanned?: (scanningResult: BarCodeScanningResult) => void; | ||
faceDetectorSettings?: {}; | ||
faceDetectorSettings?: object; | ||
onFacesDetected?: (faces: FaceDetectionResult) => void; | ||
@@ -78,6 +79,6 @@ }; | ||
pictureSize?: string; | ||
barCodeScannerSettings?: {}; | ||
barCodeScannerSettings?: object; | ||
barCodeScannerEnabled?: boolean; | ||
faceDetectorEnabled?: boolean; | ||
faceDetectorSettings?: {}; | ||
faceDetectorSettings?: object; | ||
ratio?: string; | ||
@@ -84,0 +85,0 @@ useCamera2Api?: boolean; |
@@ -6,4 +6,4 @@ /* eslint-env browser */ | ||
import * as CapabilityUtils from './CapabilityUtils'; | ||
import { isBackCameraAvailableAsync, isFrontCameraAvailableAsync } from './UserMediaManager'; | ||
import { FacingModeToCameraType, PictureSizes } from './constants'; | ||
import { isBackCameraAvailableAsync, isFrontCameraAvailableAsync } from './UserMediaManager'; | ||
export { ImageType, CameraType }; | ||
@@ -10,0 +10,0 @@ const VALID_SETTINGS_KEYS = [ |
/* eslint-env browser */ | ||
import invariant from 'invariant'; | ||
import { CameraType, ImageType } from './CameraModule.types'; | ||
import { requestUserMediaAsync } from './UserMediaManager'; | ||
import { CameraTypeToFacingMode, ImageTypeFormat, MinimumConstraints } from './constants'; | ||
import { requestUserMediaAsync } from './UserMediaManager'; | ||
export function getImageSize(videoWidth, videoHeight, scale) { | ||
@@ -7,0 +7,0 @@ const width = videoWidth * scale; |
{ | ||
"name": "expo-camera", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to the app's cache. Morever, the component is also capable of detecting faces and bar codes appearing on the preview.", | ||
@@ -49,5 +49,5 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"expo-module-scripts": "~1.1.1" | ||
"expo-module-scripts": "~1.2.0" | ||
}, | ||
"gitHead": "ec7878b9ce54f2537721218ae0fe4017e4004806" | ||
} | ||
} |
@@ -20,2 +20,3 @@ import { ViewProps } from 'react-native'; | ||
mute?: boolean; | ||
mirror?: boolean; | ||
}; | ||
@@ -50,5 +51,5 @@ | ||
onMountError?: (event: MountError) => void; | ||
barCodeScannerSettings?: {}; | ||
barCodeScannerSettings?: object; | ||
onBarCodeScanned?: (scanningResult: BarCodeScanningResult) => void; | ||
faceDetectorSettings?: {}; | ||
faceDetectorSettings?: object; | ||
onFacesDetected?: (faces: FaceDetectionResult) => void; | ||
@@ -74,6 +75,6 @@ }; | ||
pictureSize?: string; | ||
barCodeScannerSettings?: {}; | ||
barCodeScannerSettings?: object; | ||
barCodeScannerEnabled?: boolean; | ||
faceDetectorEnabled?: boolean; | ||
faceDetectorSettings?: {}; | ||
faceDetectorSettings?: object; | ||
// Android | ||
@@ -80,0 +81,0 @@ ratio?: string; |
@@ -8,4 +8,4 @@ /* eslint-env browser */ | ||
import * as CapabilityUtils from './CapabilityUtils'; | ||
import { isBackCameraAvailableAsync, isFrontCameraAvailableAsync } from './UserMediaManager'; | ||
import { FacingModeToCameraType, PictureSizes } from './constants'; | ||
import { isBackCameraAvailableAsync, isFrontCameraAvailableAsync } from './UserMediaManager'; | ||
@@ -12,0 +12,0 @@ export { ImageType, CameraType, CaptureOptions }; |
@@ -6,4 +6,4 @@ /* eslint-env browser */ | ||
import { CameraType, CaptureOptions, ImageSize, ImageType } from './CameraModule.types'; | ||
import { requestUserMediaAsync } from './UserMediaManager'; | ||
import { CameraTypeToFacingMode, ImageTypeFormat, MinimumConstraints } from './constants'; | ||
import { requestUserMediaAsync } from './UserMediaManager'; | ||
@@ -10,0 +10,0 @@ interface ConstrainLongRange { |
import { requireNativeViewManager } from '@unimodules/core'; | ||
import * as React from 'react'; | ||
import { NativeProps } from './Camera.types'; | ||
@@ -4,0 +5,0 @@ |
import { CapturedPicture, PictureOptions } from './Camera.types'; | ||
import { canGetUserMedia } from './CameraModule/UserMediaManager'; | ||
import ExponentCamera from './ExponentCamera.web'; | ||
import { canGetUserMedia } from './CameraModule/UserMediaManager'; | ||
@@ -5,0 +5,0 @@ export default { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386784
97
2814
1