Page MenuHomePhabricator

[native] introduce showEmojiKeyboard shared value
ClosedPublic

Authored by ginsu on Jan 29 2023, 2:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 5:57 PM
Unknown Object (File)
Nov 15 2024, 11:59 PM
Unknown Object (File)
Nov 15 2024, 9:45 PM
Unknown Object (File)
Nov 15 2024, 9:33 PM
Unknown Object (File)
Nov 4 2024, 4:25 AM
Unknown Object (File)
Nov 3 2024, 10:30 PM
Unknown Object (File)
Nov 1 2024, 11:57 AM
Unknown Object (File)
Nov 1 2024, 11:57 AM
Subscribers

Details

Summary

introduce showEmojiKeyboard shared value. This will be used to open/close the emoji keyboard and open/close the tooltip, which will be implemented in a subsequent diff.

Also noticed as developing that setHideTooltip would be better typed as SetState<boolean> so included that change in this diff.


Linear Task: ENG-2777

Test Plan

flow and diff will be further tested in subsequent diffs

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu added reviewers: atul, tomek.
ginsu edited the summary of this revision. (Show Details)
ginsu requested review of this revision.Jan 29 2023, 2:54 PM
tomek requested changes to this revision.Jan 30 2023, 4:39 AM
tomek added inline comments.
native/navigation/tooltip.react.js
749–750 ↗(On Diff #21534)

Why do we want to block going back when a keyboard is visible? Was it discussed somewhere?

This revision now requires changes to proceed.Jan 30 2023, 4:39 AM
native/navigation/tooltip.react.js
749–750 ↗(On Diff #21534)

This callback/worklet gets called whenever the tooltip component exits. We are going to want to have the tooltip exit when the emoji keyboard is shown so that the tooltip does not block the emoji keyboard; however, we want to make sure that we do not navigate back. Otherwise, this will close everything in the modal, including the emoji keyboard

This revision is now accepted and ready to land.Jan 31 2023, 5:19 AM