Improve copy text response time (#7358)
This commit is contained in:
parent
265be35dce
commit
081f687a11
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue