Page MenuHomePhabricator

[native] introduce useSendReaction hook
ClosedPublic

Authored by ginsu on Jan 31 2023, 1:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 3:31 AM
Unknown Object (File)
Fri, Nov 8, 3:31 AM
Unknown Object (File)
Fri, Nov 8, 3:31 AM
Unknown Object (File)
Fri, Nov 8, 3:31 AM
Unknown Object (File)
Fri, Nov 8, 3:31 AM
Unknown Object (File)
Fri, Nov 8, 3:31 AM
Unknown Object (File)
Fri, Nov 1, 11:39 AM
Unknown Object (File)
Fri, Nov 1, 11:38 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Jan 31 2023, 1:30 PM
This revision is now accepted and ready to land.Feb 1 2023, 2:43 AM

rebase for changes needed in D6455

This revision was automatically updated to reflect the committed changes.