Page MenuHomePhabricator

[native] introduce showEmojiKeyboard shared value
ClosedPublic

Authored by ginsu on Jan 29 2023, 2:40 PM.
Tags
None
Referenced Files
F3258638: D6445.id21720.diff
Fri, Nov 15, 9:45 PM
F3258159: D6445.id21723.diff
Fri, Nov 15, 9:33 PM
Unknown Object (File)
Mon, Nov 4, 4:25 AM
Unknown Object (File)
Sun, Nov 3, 10:30 PM
Unknown Object (File)
Fri, Nov 1, 11:57 AM
Unknown Object (File)
Fri, Nov 1, 11:57 AM
Unknown Object (File)
Fri, Nov 1, 11:57 AM
Unknown Object (File)
Fri, Nov 1, 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
Lint Not Applicable
Unit
Tests Not Applicable

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