diff --git a/app/containers/MessageBox/Recording.js b/app/containers/MessageBox/Recording.js index d5fed549a..1b357eee2 100644 --- a/app/containers/MessageBox/Recording.js +++ b/app/containers/MessageBox/Recording.js @@ -5,7 +5,7 @@ import { } from 'react-native'; import { AudioRecorder, AudioUtils } from 'react-native-audio'; import { BorderlessButton } from 'react-native-gesture-handler'; -import FileSystem from 'expo-file-system'; +import RNFetchBlob from 'rn-fetch-blob'; import styles from './styles'; import I18n from '../../i18n'; @@ -105,7 +105,7 @@ export default class extends React.PureComponent { this.recording = false; const filePath = await AudioRecorder.stopRecording(); if (isAndroid) { - const data = await FileSystem.getInfoAsync(decodeURIComponent(filePath)); + const data = await RNFetchBlob.fs.stat(decodeURIComponent(filePath)); this.finishRecording(true, filePath, data.size); } } catch (err) {