Skip to content

Commit

Permalink
fix(message): remove message after send
Browse files Browse the repository at this point in the history
  • Loading branch information
vokhuyetOz committed May 15, 2024
1 parent 63de0bb commit c178b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vokhuyet/react-native-messy",
"version": "0.2.0",
"version": "0.2.1",
"description": "chat ui",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion src/MessyFooter/MessyFooter.default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export function MessyFooterDefault(props: TMessyFooterProps) {
if (!text) return;

textInputRef.current?.clear();

componentRef.current.text = '';
const createdTime = Date.now();
props.onSend?.({
id: `${Date.now()}`,
Expand Down

0 comments on commit c178b85

Please sign in to comment.