Properly dimiss for PostOptions to be dismissed

This commit is contained in:
Elias Nahum
2022-02-14 17:40:16 -03:00
parent 091bd8301b
commit fa5d283715

View File

@@ -53,7 +53,7 @@ const ReactionBar = ({recentEmojis = []}: QuickReactionProps) => {
const openEmojiPicker = useCallback(async () => {
DeviceEventEmitter.emit(Events.CLOSE_BOTTOM_SHEET);
await EphemeralStore.waitUntilScreensIsRemoved(Screens.BOTTOM_SHEET);
await EphemeralStore.waitUntilScreensIsRemoved(Screens.POST_OPTIONS);
const closeButton = CompassIcon.getImageSourceSync('close', 24, theme.sidebarHeaderTextColor);
const screen = Screens.EMOJI_PICKER;