react-native-compressor icon indicating copy to clipboard operation
react-native-compressor copied to clipboard

An error has occurred! [Android]

Open MinaSamir11 opened this issue 1 year ago • 3 comments

Current behavior

it works in iOS.

Expected behavior

While trying to Call Video.compress it hit An error has occurred! (Android) Only.

Platform

  • Android

React Native Version

0.66.3

React Native Compressor Version

1.8.24

Reproducible Steps And Demo

try { const destPath = ${RNFS.TemporaryDirectoryPath}/${ '' + new Date().getTime() };

                  await RNFS.copyFile(uri, destPath);

                  uri = await Video.compress(
                    destPath,
                    {
                    },
                    (progress) => {
                      console.log('Compression Progress: ', progress);
                    },
                  );
                } catch (error) {
                  console.log('error_>scomre', error);
                  Alert.alert(
                    'something went wrong',
                    JSON.stringify(error),
                  );

}

Screenshot 2024-03-10 at 5 23 41 PM

@numandev1

MinaSamir11 avatar Mar 10 '24 15:03 MinaSamir11