Fix row flexbox

This commit is contained in:
Zhiyuan Zheng 2022-06-21 23:31:31 +02:00
parent ca810065f8
commit 41d85bf738
1 changed files with 8 additions and 10 deletions

View File

@ -87,7 +87,7 @@ const MenuRow: React.FC<Props> = ({
>
<View
style={{
flex: 3,
flexGrow: 3,
flexDirection: 'row',
alignItems: 'center'
}}
@ -111,15 +111,13 @@ const MenuRow: React.FC<Props> = ({
}}
/>
) : null}
<View style={{ flex: 1 }}>
<CustomText
fontStyle='M'
style={{ color: colors.primaryDefault }}
numberOfLines={1}
>
{title}
</CustomText>
</View>
<CustomText
fontStyle='M'
style={{ color: colors.primaryDefault }}
numberOfLines={1}
>
{title}
</CustomText>
</View>
{content || switchValue !== undefined || iconBack ? (