Skip to content

Improve the composer swipe down closing logic #54270

Backlog

Description

@mountiny

Coming from this thread in quality room.

Problem

I, as a user, are used to the fact that in every chat app I use I can interactively dismiss a keyboard. That means, when the keyboard in a chat is open to close it I can simply move my finger down the screen and as soon as my finger touches the keyboard, the keyboard is simultaneously swipes down with the movement of my finger (examples of that can be seen in "Messages App (iOS)", "WhatsApp", "Telegram", "Instagram DMs" etc - see the video attached).

In NewDot it seems like I can't dismiss the keyboard in a chat. Once i opened the keyboard there seem to be only two ways to dismiss the keyboard:

  • By navigating away from the screen and
  • By making a swipe down gesture on the text input explicitly (:warning: Someone from expensify had to educate me about this gesture explicitly. I didn't figure this out on my own!)

Now there are three problems with this:

  • Its very none standard to not be able to dismiss the keyboard interactively. Thats a lacking hygiene factor imo (whatsapp quality)
  • I never discovered option (2) on my own, thinking I simply couldn't dismiss the keyboard in chat (which was bothering me)
  • When you have a message in the composer that exceeds the line limit scrolling through the message might dismiss the keyboard as of functionality (2) which is annoying and none standard (see video in thread)

Solution

Lets add interactive keyboard dismiss support. Actually, we are already partially doing that over at this PR which we are working on.
In this PR we are basically migrating the chat to react-native-keyboard-controller which will allow us to implement the dismiss gesture very simply and consistently across platforms.

However, its not the goal of that PR to add it, it only adds the "infrastructure". I would like to open a follow up issue to add support for interactive keyboard dismissal once the mentioned PR is merged.

Issue OwnerCurrent Issue Owner: @chrispader

Activity

  1. added
    Daily
    Bug
    on Dec 17, 2024
  2. self-assigned this
    on Dec 17, 2024
  3. melvin-bot commented on Dec 17, 2024

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  4. melvin-bot commented on Dec 18, 2024

    @melvin-bot

    📣 @hannomargelo! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Make sure you've read and understood the contributing guidelines.
    2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  5. hannojg commented on Dec 18, 2024

    @hannojg
    Contributor

    cc @kirillzyusko can you please comment here, as you will be the one working on this most of the times I think (feel free to assign us both Vit!)

  6. kirillzyusko commented on Dec 18, 2024

    @kirillzyusko
    Contributor

    Hello, I'm Kiryl from Margelo expert agency and I would like to work on this task 😊

  7. mountiny commented on Dec 18, 2024

    @mountiny
    ContributorAuthor

    Thanks!

    Can you please write a plan of how to tackle this first, thanks!

  8. hannojg commented on Dec 20, 2024

    @hannojg
    Contributor

    The idea is to first get this PR merged (we can put this issue on hold for it), as it restructures the report screen to use react-native-keyboard-controller:

    I think the next step once this is merged would be to build a PoC PR where we implement the interactive keyboard dismissal using RNKC on the report screen.

    From this PoC we can decide if it's good to get merged already or should be split up in smaller tasks (thats a bit hard to foresee right now. My gut says/hopes that one PR is enough and the changes won't be too many).

    Once we got those landed we could check if there are other product areas that could benefit from improved keyboard handling.

  9. CortneyOfstad commented on Dec 20, 2024

    @CortneyOfstad
    Contributor

    Hey team! Just a heads up that I will be OOO starting this afternoon (December 20th) and will be returning January 6th. A handful of folks on the BZ team will be online for a few days in between the 25th and the 1st, but we'll be operating with a skeleton crew. If any action is needed from a BZ perspective, please post this issue in #expensify-open-source and someone on the team will jump in. Otherwise I will review when I'm back in office.

    Thank you and Happy Holidays!

  10. 192 remaining items

  11. roryabraham commented on Apr 4, 2026

    @roryabraham
    Contributor

    @chrispader what's the latest here?

  12. chrispader commented on Apr 10, 2026

    @chrispader
    Contributor

    @mountiny and i decided to put this aside for now and i'll continue working on it once i've finished other tasks with higher priority, since this is an UI/UX improvement and not super urgent.

    Technically, @kirillzyusko and i have to fix one remaining issue that we have with react-native-keyboard-controller. I'll check soon whether we can find a quick fix for this and upstream a fix.

  13. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    @CortneyOfstad, @chrispader, @parasharrajat, @mountiny, @roryabraham, this Monthly task hasn't been acted upon in 6 weeks; closing.

    If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

  14. chrispader commented on Jul 15, 2026

    @chrispader
    Contributor

    I've continued working on this! There is a new major react-native-keyboard-controller release version 1.22.x, which includes KeyboardChatScrollView component, that might reduce the complexity of the this change and hide lots of the logic needed in the library instead of the App codebase.

    Keeping you updated on the progress here 🙌🏼

  15. chrispader commented on Jul 16, 2026

    @chrispader
    Contributor

    Working on the new KeyboardChatScrollView approach in #96167, and it works pretty well so far and removes most of the complexity from #71440.

    Giving another update with videos tomorrow!

  16. chrispader commented on Jul 28, 2026

    @chrispader
    Contributor

    Still working on integrating KeyboardChatScrollView into the app. There is still one remaining bug in RKNC on iOS, which causes a jump/lag when the user dismisses the keyboard.

  17. chrispader commented on Sep 14, 2026

    @chrispader
    Contributor

    Since we're migrating all the lists in the app to LegendList, this will make interactive keyboard dismissal way easier and less complex, because LegendList integrates with RNKC out-of-the-box with KeyboardAwareLegendList. I'm working in person with @kirillzyusko this week on getting this to work! 🙌🏼

    Then we'll just need to wait for PRs 2-4 in #98994 to be merged.

  18. expensify-chore-bot commented on Nov 26, 2026

    @expensify-chore-bot

    @CortneyOfstad, @chrispader, @parasharrajat, @mountiny, @roryabraham, this Monthly task hasn't been acted upon in 6 weeks; closing.

    If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

  19. chrispader commented on Nov 26, 2026

    @chrispader
    Contributor

    LegendList migration is still ongoing but we've reached the last parts. @roryabraham please re-open this, as i will address this right after 🙌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugMonthlyNot a priority

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions