From 081f687a11515dfa2e8d9306fc7e916b595376aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Fri, 19 May 2023 13:48:00 +0200 Subject: [PATCH] Improve copy text response time (#7358) --- app/screens/post_options/options/copy_text_option.tsx | 2 +- 1 file changed, 1 insertion(+), 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 e7da304a0..a770e2d56 100644 --- a/app/screens/post_options/options/copy_text_option.tsx +++ b/app/screens/post_options/options/copy_text_option.tsx @@ -19,8 +19,8 @@ type Props = { } const CopyTextOption = ({bottomSheetId, postMessage, sourceScreen}: Props) => { const handleCopyText = useCallback(async () => { - await dismissBottomSheet(bottomSheetId); Clipboard.setString(postMessage); + await dismissBottomSheet(bottomSheetId); showSnackBar({barType: SNACK_BAR_TYPE.MESSAGE_COPIED, sourceScreen}); }, [postMessage]);