diff --git a/native/components/emoji-keyboard.react.js b/native/components/emoji-keyboard.react.js index df8c37a32..b1cd863c7 100644 --- a/native/components/emoji-keyboard.react.js +++ b/native/components/emoji-keyboard.react.js @@ -1,26 +1,35 @@ // @flow import * as React from 'react'; import EmojiPicker from 'rn-emoji-keyboard'; +export type EmojiSelection = { + +emoji: string, + +name: string, + +slug: string, + +unicode_version: string, + +toneEnabled: string, + +alreadySelected?: boolean, +}; + type Props = { - +onEmojiSelected: (emoji: { emoji: string, ... }) => mixed, + +onEmojiSelected: (emoji: EmojiSelection) => mixed, +emojiKeyboardOpen: boolean, +onEmojiKeyboardClose: () => mixed, }; function EmojiKeyboard(props: Props): React.Node { const { onEmojiSelected, emojiKeyboardOpen, onEmojiKeyboardClose } = props; return ( ); } export default EmojiKeyboard;