HomePhabricator
Diffusion Comm fa4110a3b78a

[native] introduce useSendReaction hook

Description

[native] introduce useSendReaction hook

Summary:
introduce useSendReaction hook. This hook will eventually be used in the following files

  1. native/chat/text-message-tooltip-button.react
  2. native/chat/multimedia-message-tooltip-button.react
  3. native/chat/robotext-message-tooltip-button.react.

This hook will also eventually replace onPressReact and sendReaction in reaction-message-utils; however, it is not safe to remove it yet because the like button in the tooltip still calls these functions, but we will address this in a subsequent diff


Depends on D6453
Linear Task: ENG-2779

Test Plan: flow and this diff will be further tested in subsequent diffs

Reviewers: atul, tomek

Reviewed By: tomek

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D6487

Details

Provenance
ginsuAuthored on Feb 1 2023, 2:10 PM
Reviewer
tomek
Differential Revision
D6487: [native] introduce useSendReaction hook
Parents
rCOMMd2d27db6e139: [native] introduce useReactionSelectionPopoverPosition hook
Branches
Unknown
Tags
Unknown