Skip to content

Standardize on one method for detecting keyboard state #13582

Description

@tgolen

Problem

There are two ways for components to detect the keyboard state:

  1. Using the HOC withKeyboardState - this works on native devices, but doesn't have support for mobile web
  2. Using VirtualKeyboard.shouldAssumeIsOpen() - this appears to work on both native devices and mobile web. Originally added in this PR.

Neither option is used consistently, leading to inconsistent behavior in the app.

Solution

  • Make sure that VirtualKeyboard works for mobile web
  • Move the functionality from VirtualKeyboard into withKeyboardState
  • Use withKeyboardState everywhere
  • Remove VirtualKeyboard

CC @jasperhuangg @parasharrajat

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e011fc436edaf3d0
  • Upwork Job ID: 1608620601075437568
  • Last Price Increase: 2022-12-30

Metadata

Metadata

Labels

DailyKSv2ImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions