Page MenuHomePhabricator

[native] introduce EmojiSelection type
ClosedPublic

Authored by ginsu on Jun 15 2023, 10:18 AM.
Tags
None
Referenced Files
F2171789: D8227.id27808.diff
Tue, Jul 2, 6:20 PM
F2167359: D8227.id.diff
Tue, Jul 2, 6:10 AM
Unknown Object (File)
Mon, Jul 1, 12:28 AM
Unknown Object (File)
Sun, Jun 30, 9:41 AM
Unknown Object (File)
Sat, Jun 29, 1:47 AM
Unknown Object (File)
Sun, Jun 16, 5:28 PM
Unknown Object (File)
Thu, Jun 13, 1:12 PM
Unknown Object (File)
Tue, Jun 11, 6:47 PM
Subscribers

Details

Summary

Created a new type called EmojiSelection based on this type found in the rn-emoji-keyboard codebase. This should be an improvement to what we had before ({ emoji: string, ... })

Test Plan

Everything still works and when I log out emoji in onEmojiSelected in native/avatars/emoji-avatar-creation.react.js I now get the improved field suggestions for emoji

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu published this revision for review.Jun 15 2023, 10:21 AM
ginsu edited the summary of this revision. (Show Details)
ginsu added reviewers: atul, kamil.
ginsu edited the test plan for this revision. (Show Details)
atul added inline comments.
native/components/emoji-keyboard.react.js
6–13 ↗(On Diff #27808)

Wonder if there's a better name for this type than EmojiType since alreadySelected seems like it's describing some aspect of the state of the emoji picker rather than the emoji being selected? Maybe EmojiSelection?

This revision is now accepted and ready to land.Jun 15 2023, 6:40 PM
ginsu retitled this revision from [native] introduce EmojiType to [native] introduce EmojiSelection type.Jun 16 2023, 8:35 AM
ginsu edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.