From 9c7048f6ac5483d3303d85db06c787e4c2b6937d Mon Sep 17 00:00:00 2001 From: Harshal Sanghvi Date: Tue, 3 Oct 2023 11:33:00 +0530 Subject: [PATCH] remove redunted copy to clipboard message --- app/screens/post_options/options/copy_text_option.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/screens/post_options/options/copy_text_option.tsx b/app/screens/post_options/options/copy_text_option.tsx index a770e2d5635..5f444046407 100644 --- a/app/screens/post_options/options/copy_text_option.tsx +++ b/app/screens/post_options/options/copy_text_option.tsx @@ -3,6 +3,7 @@ import Clipboard from '@react-native-clipboard/clipboard'; import React, {useCallback} from 'react'; +import {Platform} from 'react-native'; import {BaseOption} from '@components/common_post_options'; import {SNACK_BAR_TYPE} from '@constants/snack_bar'; @@ -21,7 +22,9 @@ const CopyTextOption = ({bottomSheetId, postMessage, sourceScreen}: Props) => { const handleCopyText = useCallback(async () => { Clipboard.setString(postMessage); await dismissBottomSheet(bottomSheetId); - showSnackBar({barType: SNACK_BAR_TYPE.MESSAGE_COPIED, sourceScreen}); + if ((Platform.OS === 'android' && Platform.Version < 33) || Platform.OS === 'ios') { + showSnackBar({barType: SNACK_BAR_TYPE.MESSAGE_COPIED, sourceScreen}); + } }, [postMessage]); return (