diff --git a/app/containers/message/Components/BlurComponent.tsx b/app/containers/message/Components/BlurComponent.tsx
new file mode 100644
index 000000000..2683c7549
--- /dev/null
+++ b/app/containers/message/Components/BlurComponent.tsx
@@ -0,0 +1,28 @@
+import React from 'react';
+import { BlurView } from '@react-native-community/blur';
+import { View } from 'react-native';
+
+import styles from '../styles';
+import RCActivityIndicator from '../../ActivityIndicator';
+import { CustomIcon } from '../../CustomIcon';
+import { useTheme } from '../../../theme';
+
+const BlurComponent = ({ loading = false }: { loading: boolean }) => {
+ const { theme, colors } = useTheme();
+
+ return (
+ <>
+
+
+ {loading ? : }
+
+ >
+ );
+};
+
+export default BlurComponent;
diff --git a/app/containers/message/Image.tsx b/app/containers/message/Image.tsx
index 09eb15ed0..4344e32e4 100644
--- a/app/containers/message/Image.tsx
+++ b/app/containers/message/Image.tsx
@@ -4,7 +4,6 @@ import FastImage from 'react-native-fast-image';
import { dequal } from 'dequal';
import { createImageProgress } from 'react-native-image-progress';
import * as Progress from 'react-native-progress';
-import { BlurView } from '@react-native-community/blur';
import * as FileSystem from 'expo-file-system';
import Touchable from './Touchable';
@@ -16,10 +15,9 @@ import { TGetCustomEmoji } from '../../definitions/IEmoji';
import { IAttachment, IUserMessage } from '../../definitions';
import { TSupportedThemes, useTheme } from '../../theme';
import { formatAttachmentUrl } from '../../lib/methods/helpers/formatAttachmentUrl';
-import { CustomIcon } from '../CustomIcon';
-import RCActivityIndicator from '../ActivityIndicator';
import { MediaTypes, downloadMediaFile, searchMediaFileAsync } from '../../lib/methods/handleMediaDownload';
import { isAutoDownloadEnabled } from './helpers/mediaDownload/autoDownloadPreference';
+import BlurComponent from './Components/BlurComponent';
interface IMessageButton {
children: React.ReactElement;
@@ -73,24 +71,6 @@ export const MessageImage = React.memo(
}
);
-const BlurComponent = ({ loading = false }: { loading: boolean }) => {
- const { theme, colors } = useTheme();
-
- return (
- <>
-
-
- {loading ? : }
-
- >
- );
-};
-
const ImageContainer = React.memo(
({ file, imageUrl, showAttachment, getCustomEmoji, style, isReply, author, messageId }: IMessageImage) => {
const [toDownload, setToDownload] = useState(true);