Skip to content

[HOLD for payment 2023-03-09] Keyboard is visible for a brief moment on request/send money page after getting back from currency search page #15085

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the app in android
  2. Open any report
  3. Click on plus
  4. Click on Request money/ send money/ split bill
  5. Click on currency
  6. On currency search page, when keyboard is displayed for search, click on 'X' to close and get back to previous page

Expected Result:

Keyboard should close first and then app should get back to previous request/send money screen

Actual Result:

App navigates to request/send money screen first and then closes the keyboard (works properly on mWeb android chrome)

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native

Version Number: 1.2.70-1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

keyboard.issue.android.app.mp4
az_recorder_20230212_205641.1.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676043921470679

View all open jobs on GitHub

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Feb 13, 2023
  2. MelvinBot commented on Feb 13, 2023

    @MelvinBot
    Contributor

    Triggered auto assignment to @mateocole (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. locked and limited conversation to collaborators on Feb 13, 2023
  4. MelvinBot commented on Feb 13, 2023

    @MelvinBot
    Contributor

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  5. unlocked this conversation on Feb 14, 2023
  6. narefyev91 commented on Feb 14, 2023

    @narefyev91
    Contributor

    Hello, I'm Nicolay from Callstack and I'm interested in taking and analysing this issue to work on a fix for it.

  7. narefyev91 commented on Feb 15, 2023

    @narefyev91
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    App doesn't automatically hide keyboard on android - while moving between screens.

    What is the root cause of that problem?

    The main issue - when user goes back - no events fires to app to dismiss keyboard (if keyboard has been already opened)

    What changes do you think we should make in order to solve the problem?

    The main change should be:

    1. using new event handler to detect when user wants to live current screen.
    2. when event triggers - needs to close keyboard (if keyboard has been already opened)
      Example:
            this.beforeRemoveSubscription = this.props.navigation.addListener('beforeRemove', () => {
                if (this.props.isKeyboardShown) {
                    Keyboard.dismiss();
                }
            });
    

    What alternative solutions did you explore?

    We can solve issue in 2 ways - globally and locally.
    For global one - we can add subscription to event beforeremove inside ScreenWrapper class and add in compose withKeyboardState HOC - which will guaranty that keyboard will be closed on any screen which was wrapped in ScreenWrapper
    For local one - doing the same steps - but only under IOUCurrencySelection class

  8. MelvinBot commented on Feb 15, 2023

    @MelvinBot
    Contributor

    Looks like something related to react-navigation may have been mentioned in this issue discussion.

    As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

    Feel free to drop a note in #expensify-open-source with any questions.

  9. self-assigned this
    on Feb 15, 2023
  10. mountiny commented on Feb 15, 2023

    @mountiny
    Contributor

    We are trying to avoid making changes related to react-navigation now as we are reworking this. I think we could try this solution locally @narefyev91 and confirm it works well there on all the native platforms.

    Can you please create a PR and fill in the template with testing done on all the platforms? Thank you very much!

  11. 14 remaining items

  12. mateocole commented on Mar 10, 2023

    @mateocole

    Okay, here is an upwork post for everyone to apply to for payment:
    https://www.upwork.com/jobs/~01115b5c443336b31a

  13. mountiny commented on Mar 10, 2023

    @mountiny
    Contributor

    This is only going to be:

    @narefyev91 is handled differently

  14. dhanashree-sawant commented on Mar 10, 2023

    @dhanashree-sawant

    Hi @mountiny, thanks I have applied to the upwork job.

  15. mateocole commented on Mar 10, 2023

    @mateocole

    Okay contracts sent!

  16. mateocole commented on Mar 10, 2023

    @mateocole

    Alright payments sent

  17. syedsaroshfarrukhdot commented on Mar 21, 2023

    @syedsaroshfarrukhdot
    Contributor

    I believe i reported a similar issue a few months ago and we ended up resolving a dupe issue while original issue was on hold #13449. So i think i am also eligible for reporting bonus here.

  18. mountiny commented on Mar 21, 2023

    @mountiny
    Contributor

    Ltts keep it in that issue, even on hold I the reporting bonus should be paid I believe once we will put it off hold

  19. JmillsExpensify commented on Mar 27, 2023

    @JmillsExpensify
    Contributor

    Jumping in here. Doesn't the fix for this issue also fix #13449? In fact, I've tested that issue and I'm no longer able to reproduce it, so I'm pretty certain the answer is yes.

  20. JmillsExpensify commented on Mar 27, 2023

    @JmillsExpensify
    Contributor

    Assuming we all agree on that last comment, then I agree that @syedsaroshfarrukhdot should be eligible for a reporting bonus and we should close the related issue. I'm happy to do it there, though let's first ensure that we agree on the next steps in this issue before I move forward.

  21. mountiny commented on Mar 27, 2023

    @mountiny
    Contributor

    Checking, seems like this is the case. I think we can close and pay @syedsaroshfarrukhdot

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions