diff --git a/components/conversation-screen.tsx b/components/conversation-screen.tsx index 66a553aa..e2bcf2b0 100644 --- a/components/conversation-screen.tsx +++ b/components/conversation-screen.tsx @@ -290,8 +290,15 @@ const ConversationScreenNavBar = ({ setShowMenu(x => !x); }, []); + // There's a bug in React Native which causes `overflow: hidden` to be + // ignored when zIndex or elevation are set. + const menuWorkaround = showMenu && Platform.OS === 'android' ? { + elevation: undefined, + zIndex: undefined, + } : {}; + return ( - + navigation.goBack()} iconName="arrow-back" @@ -304,6 +311,9 @@ const ConversationScreenNavBar = ({ justifyContent: 'center', alignItems: 'center', maxWidth: 220, + overflow: 'visible', + flexDirection: 'row', + gap: 10, }} > {name ?? '...'} - {!isOnline && - - } + {isAvailableUser && { width: '100%', overflow: 'visible', ...(props.shadow === false ? {} : shadow), + ...props.containerStyle, }} >