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)
Wed, May 1, 6:17 AM
Unknown Object (File)
Sun, Apr 28, 5:30 AM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:09 PM
Unknown Object (File)
Apr 17 2024, 2:01 PM
Unknown Object (File)
Feb 22 2024, 7:36 PM
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