-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline chat input #575
Multiline chat input #575
Conversation
@@ -54,9 +51,16 @@ | |||
:accessibility-label :input | |||
:on-focus #(do (dispatch [:set :focused true]) | |||
(dispatch [:set-chat-ui-props :show-emoji? false])) | |||
:on-blur #(do (dispatch [:set :focused false]) | |||
:on-blur #(do (reset! message-text "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Use of undeclared Var status-im.chat.views.message-input/message-text at line 54 src/status_im/chat/views/message_input.cljs
Sounds crazy, but it's almost 2017 and React Native still doesn't completely support the desired behaviour: facebook/react-native#1882 |
d499f99
to
a58ed1a
Compare
@alwx, maybe I just don't understand, but why should we send the message when user presses Return? I imagine that users will expect a new line in the result of this action. Or I miss something? |
hmm on return it shouldn't send the message |
Ok, sorry. I will close the PR. |
I've copied some code from drawer to chat to allow users to send messages by tapping Enter on the keyboard (previously it didn't work well on iOS)