-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Keep keyboard open after posting a new comment on mobile #184
Comments
I looked into this (for probably too long) on iOS. I turned off the I tried using I changed the control to only be a single line component, and both setting the state and using @AndrewGable or @Jag96 Maybe I am missing something? My WIP branch is here if you want to take a look at it. https://github.com/AndrewGable/ReactNativeChat/compare/tgolen-mobile-focus?expand=1 |
Had a look at this and it seems like this is a problem that a lot of people have, and RN hasn't done a great job of making it easy for the multiline component. I was able to get the textInput to clear by using
Additionally, I found the following issues, but no fixes
|
Ah, cool that you got it working. Rather than using |
While I got the diff working on iOS, it does not work for Android. Setting
There's also an open PR for removing this functionality from iOS so it matches android: facebook/react-native#29177 Is there a reason we aren't using a UI button to do the submit? That could be an alternative for getting this working in a timely manner, otherwise, we can look at the RN code and see if there's a potential fix there for keeping the keyboard open after submitting w/ blurOnSubmit set to true. cc @AndrewGable in case he has any other ideas |
Spoke w/ @shawnborton, going to take this one and add a button embedded in the input text like we currently have on reports. |
Currently, the keyboard closes when you send a new comment creating a kind of jarring experience. I notice on slack the keyboard remains open enabling you to quickly send another comment. Assigning medium because it's mobile, and highly visible when you make a comment.
The text was updated successfully, but these errors were encountered: