gaminilesh
12/23/2019 - 12:37 PM

Video Code

https://github.com/react-native-community/react-native-image-picker/blob/master/docs/Reference.md
 
 submitClick=() =>{
          const options = {
            quality:0,
            mediaType: 'video',
            cameraType:'front',
            videoQuality:'low',
            durationLimit:'0',
            allowsEditing:true,
            storageOptions: {
              path: 'videos',
              skipBackup: true
            }
          };
          ImagePicker.showImagePicker(options, response => {
            console.log("Response = ", response);
            if (response.didCancel) {
              console.log("User cancelled image picker");
            } else if (response.error) {
              console.log("ImagePicker Error: ", response.error);
            } else if (response.customButton) {
              console.log("User tapped custom button: ", response.customButton);
            } else {
              const source = { uri: response.uri };
              console.log("Url of image picket ", source);
              console.log("data of image : ", response.data);
              // item.dataBase64 = response.data;
              // item.fileURI = source;
              // item.fileSize = response.fileSize;
              // item.fileType = response.type;
              // item.fileName = response.fileName;
              // item.filePath = response.path;
              // this.setState({
              //   changeDocumentSelect: !this.statechangeDocumentSelect
              // });
            }
          });
        };