use self_end instead of margin: auto
This commit is contained in:
@@ -57,7 +57,12 @@ export function MessageItem({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
style={{maxWidth: '65%', marginLeft: isFromSelf ? 'auto' : undefined}}>
|
style={[
|
||||||
|
{
|
||||||
|
maxWidth: '65%',
|
||||||
|
},
|
||||||
|
isFromSelf ? a.self_end : a.self_start,
|
||||||
|
]}>
|
||||||
<GrowWrapper onOpenMenu={onOpenMenu}>
|
<GrowWrapper onOpenMenu={onOpenMenu}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
|
|||||||
Reference in New Issue
Block a user