From 96781f389a31162809ff463cc187d56fc3354e49 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 26 Apr 2021 18:17:05 -0400 Subject: clear text --- src/screens/chat/NewChatModal.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/screens/chat/NewChatModal.tsx b/src/screens/chat/NewChatModal.tsx index 0b0661f9..9872dd6f 100644 --- a/src/screens/chat/NewChatModal.tsx +++ b/src/screens/chat/NewChatModal.tsx @@ -35,6 +35,7 @@ const NewChatModal: React.FC = ({ Keyboard.dismiss(); }; const handleCancel = () => { + setQuery(''); setChatModalVisible(false); }; @@ -118,7 +119,12 @@ const NewChatModal: React.FC = ({ { + if (!open) { + setQuery(''); + } + setChatModalVisible(open); + }} showHeader={false}> {_modalContent()} -- cgit v1.2.3-70-g09d2