diff options
-rw-r--r-- | src/screens/chat/NewChatModal.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
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<NewChatModalProps> = ({ Keyboard.dismiss(); }; const handleCancel = () => { + setQuery(''); setChatModalVisible(false); }; @@ -118,7 +119,12 @@ const NewChatModal: React.FC<NewChatModalProps> = ({ <BottomDrawer initialSnapPosition={'90%'} isOpen={modalVisible} - setIsOpen={setChatModalVisible} + setIsOpen={(open) => { + if (!open) { + setQuery(''); + } + setChatModalVisible(open); + }} showHeader={false}> {_modalContent()} </BottomDrawer> |