Skip to content

Commit 6f1df47

Browse files
chrisbobbegnprice
authored andcommitted
ComposeMenu [nfc]: Separately define style for containing View
Rather than reusing `styles.composeMenu`, since these are two different Views with different roles. We don't need to copy over the `overflow: 'hidden'`; it would be redundant with the one on the inner View.
1 parent 3bd87c0 commit 6f1df47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compose/ComposeMenu.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ export default function ComposeMenu(props: Props): Node {
225225
const styles = useMemo(
226226
() =>
227227
createStyleSheet({
228+
container: {
229+
flexDirection: 'row',
230+
},
228231
composeMenu: {
229232
flexDirection: 'row',
230233

@@ -243,7 +246,7 @@ export default function ComposeMenu(props: Props): Node {
243246
const numIcons = 2 + (Platform.OS === 'android' ? 1 : 0) + (insertVideoCallLink !== null ? 1 : 0);
244247

245248
return (
246-
<View style={styles.composeMenu}>
249+
<View style={styles.container}>
247250
<AnimatedComponent
248251
stylePropertyName="width"
249252
fullValue={40 * numIcons}

0 commit comments

Comments
 (0)