Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions __tests__/__snapshots__/Storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30989,6 +30989,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down Expand Up @@ -31206,6 +31221,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down Expand Up @@ -31628,6 +31658,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down Expand Up @@ -31997,6 +32042,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down Expand Up @@ -39152,6 +39212,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down Expand Up @@ -39802,6 +39877,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down Expand Up @@ -40042,6 +40132,21 @@ exports[`Storyshots Message list message 1`] = `
}
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"opacity": 0.25,
},
Object {
"height": "100%",
"position": "absolute",
"width": "100%",
},
]
}
/>
<View
style={
Object {
Expand Down
38 changes: 23 additions & 15 deletions app/containers/message/Reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ const styles = StyleSheet.create({
borderWidth: 1,
borderRadius: 4
},
attachmentBackground: {
position: 'absolute',
width: '100%',
height: '100%'
},
attachmentContainer: {
flex: 1,
borderRadius: 4,
Expand Down Expand Up @@ -159,25 +164,28 @@ const Reply = React.memo(({
attachment.description && styles.marginBottom,
{
backgroundColor: themes[theme].chatComponentBackground,
borderColor: themes[theme].borderColor
borderColor: attachment.color || themes[theme].borderColor
}
]}
background={Touchable.Ripple(themes[theme].bannerBackground)}
>
<View style={styles.attachmentContainer}>
<Title
attachment={attachment}
timeFormat={timeFormat}
theme={theme}
/>
<Description
attachment={attachment}
timeFormat={timeFormat}
getCustomEmoji={getCustomEmoji}
theme={theme}
/>
<Fields attachment={attachment} theme={theme} />
</View>
<>
<View style={[{ backgroundColor: attachment.color || 'transparent', opacity: 0.25 }, styles.attachmentBackground]} />
Comment thread
diegolmello marked this conversation as resolved.
Outdated
<View style={styles.attachmentContainer}>
<Title
attachment={attachment}
timeFormat={timeFormat}
theme={theme}
/>
<Description
attachment={attachment}
timeFormat={timeFormat}
getCustomEmoji={getCustomEmoji}
theme={theme}
/>
<Fields attachment={attachment} theme={theme} />
</View>
</>
</Touchable>
<Markdown
msg={attachment.description}
Expand Down