Skip to content

Commit

Permalink
close emoji picker when priority opens
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat-Dabade committed Sep 3, 2024
1 parent 0fcdc08 commit 11e74cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import React, {useCallback} from 'react';
import {useIntl} from 'react-intl';
import {Keyboard, StyleSheet} from 'react-native';
import {DeviceEventEmitter, Keyboard, StyleSheet} from 'react-native';

import CompassIcon from '@components/compass_icon';
import TouchableWithFeedback from '@components/touchable_with_feedback';
import {Screens} from '@constants';
import {Events, Screens} from '@constants';
import {ICON_SIZE} from '@constants/post_draft';
import {useTheme} from '@context/theme';
import {useIsTablet} from '@hooks/device';
Expand Down Expand Up @@ -41,6 +41,7 @@ export default function PostPriorityAction({

const onPress = useCallback(() => {
Keyboard.dismiss();
DeviceEventEmitter.emit(Events.CLOSE_EMOJI_PICKER);

const title = isTablet ? intl.formatMessage({id: 'post_priority.picker.title', defaultMessage: 'Message priority'}) : '';

Expand Down

0 comments on commit 11e74cb

Please sign in to comment.