diff --git a/native/chat/inline-engagement.react.js b/native/chat/inline-engagement.react.js --- a/native/chat/inline-engagement.react.js +++ b/native/chat/inline-engagement.react.js @@ -30,16 +30,16 @@ type Props = { +sidebarThreadInfo: ?ThreadInfo, - +reactions?: ReactionInfo, + +reactions: ReactionInfo, +disabled?: boolean, +positioning?: 'left' | 'right' | 'center', +label?: ?string, }; function InlineEngagement(props: Props): React.Node { const { - disabled = false, - reactions, sidebarThreadInfo, + reactions, + disabled = false, positioning, label, } = props; @@ -88,7 +88,7 @@ const sidebarStyle = React.useMemo(() => { const stylesResult = [styles.sidebar]; - if (!reactions || Object.keys(reactions).length === 0) { + if (Object.keys(reactions).length === 0) { return stylesResult; } @@ -155,7 +155,7 @@ ]); const reactionList = React.useMemo(() => { - if (!reactions || Object.keys(reactions).length === 0) { + if (Object.keys(reactions).length === 0) { return null; } @@ -366,6 +366,7 @@