Problem
There are two ways for components to detect the keyboard state:
- Using the HOC
withKeyboardState - this works on native devices, but doesn't have support for mobile web
- 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
Problem
There are two ways for components to detect the keyboard state:
withKeyboardState- this works on native devices, but doesn't have support for mobile webVirtualKeyboard.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
VirtualKeyboardworks for mobile webVirtualKeyboardintowithKeyboardStatewithKeyboardStateeverywhereVirtualKeyboardCC @jasperhuangg @parasharrajat
Upwork Automation - Do Not Edit