mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Merge pull request #1296 from react-native-community/chore-ts-definitions
Add new type definitions according to #1283
This commit is contained in:
commit
b0f999e977
@ -22,6 +22,9 @@ type PictureOptions = {
|
||||
base64?: boolean,
|
||||
mirrorImage?: boolean,
|
||||
exif?: boolean,
|
||||
width?: number,
|
||||
fixOrientation?: boolean,
|
||||
forceUpOrientation?: boolean,
|
||||
};
|
||||
|
||||
type TrackedFaceFeature = FaceFeature & {
|
||||
|
5
types/index.d.ts
vendored
5
types/index.d.ts
vendored
@ -116,7 +116,10 @@ interface TakePictureOptions {
|
||||
quality?: number;
|
||||
base64?: boolean;
|
||||
exif?: boolean;
|
||||
width?: number;
|
||||
|
||||
/** Android only */
|
||||
fixOrientation?: boolean;
|
||||
/** iOS only */
|
||||
forceUpOrientation?: boolean;
|
||||
}
|
||||
@ -172,4 +175,4 @@ export class FaceDetector {
|
||||
*/
|
||||
export default class RCTCamera extends Component<any> {
|
||||
static constants: any;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user