diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js --- a/native/chat/chat-input-bar.react.js +++ b/native/chat/chat-input-bar.react.js @@ -967,19 +967,7 @@ saveExit(); return; } - Alert.alert( - 'Discard changes?', - 'You have unsaved changes. Are you sure to discard them and leave the ' + - 'screen?', - [ - { text: 'Don’t leave', style: 'cancel' }, - { - text: 'Discard edit', - style: 'destructive', - onPress: saveExit, - }, - ], - ); + exitEditAlert(saveExit); }; onPressJoin = () => {