center the trigger
This commit is contained in:
@@ -47,6 +47,7 @@ export function ActionsWrapper({
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.mr_md,
|
a.mr_md,
|
||||||
|
a.justify_center,
|
||||||
{
|
{
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export function MessageItem({
|
|||||||
}, [item, next, isFromSelf, isNextFromSelf])
|
}, [item, next, isFromSelf, isNextFromSelf])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<View>
|
||||||
<ActionsWrapper isFromSelf={isFromSelf} message={item}>
|
<ActionsWrapper isFromSelf={isFromSelf} message={item}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
@@ -74,11 +75,12 @@ export function MessageItem({
|
|||||||
{item.text}
|
{item.text}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
</ActionsWrapper>
|
||||||
<MessageItemMetadata
|
<MessageItemMetadata
|
||||||
message={item}
|
message={item}
|
||||||
isLastInGroup={isLastInGroup}
|
isLastInGroup={isLastInGroup}
|
||||||
style={isFromSelf ? a.text_right : a.text_left}
|
style={isFromSelf ? a.text_right : a.text_left}
|
||||||
/>
|
/>
|
||||||
</ActionsWrapper>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user