Make VideoFile's duration/size props nullable

This commit is contained in:
Marc Rousavy 2021-03-18 12:18:57 +01:00
parent 89a35812f7
commit 1def7230c8

View File

@ -52,10 +52,18 @@ export interface RecordVideoOptions {
export interface VideoFile extends TemporaryFile {
/**
* Represents the duration of the video, in seconds.
*
* This is `undefined` on Android, see [issue #77](https://github.com/cuvent/react-native-vision-camera/issues/77)
*
* @platform iOS
*/
duration: number;
duration?: number;
/**
* Represents the file size of the recorded Video File, in bytes.
*
* This is `undefined` on Android, see [issue #77](https://github.com/cuvent/react-native-vision-camera/issues/77)
*
* @platform iOS
*/
size: number;
size?: number;
}