Page MenuHomePhabricator

[native] introduce EmojiSelection type
ClosedPublic

Authored by ginsu on Jun 15 2023, 10:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 4, 3:58 PM
Unknown Object (File)
Sat, Jan 4, 3:58 PM
Unknown Object (File)
Sat, Jan 4, 3:58 PM
Unknown Object (File)
Sat, Jan 4, 3:58 PM
Unknown Object (File)
Sat, Jan 4, 3:54 PM
Unknown Object (File)
Nov 23 2024, 1:39 PM
Unknown Object (File)
Nov 7 2024, 11:37 PM
Unknown Object (File)
Nov 1 2024, 7:23 AM
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.