@@ -30,7 +30,7 @@ function defaultMessageListLayout(
30
30
const messageTitle = rowViewModel . inAppMessage . inboxMetadata ?. title ?? ""
31
31
const messageBody = rowViewModel . inAppMessage . inboxMetadata ?. subtitle ?? ""
32
32
const messageCreatedAt = dataModel . getFormattedDate ( rowViewModel . inAppMessage ) ?? ""
33
- const iconURL = rowViewModel . imageUrl
33
+ const thumbnailURL = rowViewModel . imageUrl
34
34
35
35
let styles = StyleSheet . create ( {
36
36
unreadIndicatorContainer : {
@@ -49,13 +49,13 @@ function defaultMessageListLayout(
49
49
marginTop : 10
50
50
} ,
51
51
52
- unreadMessageIconContainer : {
52
+ unreadMessageThumbnailContainer : {
53
53
paddingLeft : 10 ,
54
54
flexDirection : 'column' ,
55
55
justifyContent : 'center'
56
56
} ,
57
57
58
- readMessageIconContainer : {
58
+ readMessageThumbnailContainer : {
59
59
paddingLeft : 30 ,
60
60
flexDirection : 'column' ,
61
61
justifyContent : 'center'
@@ -105,8 +105,8 @@ function defaultMessageListLayout(
105
105
let {
106
106
unreadIndicatorContainer,
107
107
unreadIndicator,
108
- unreadMessageIconContainer ,
109
- readMessageIconContainer ,
108
+ unreadMessageThumbnailContainer ,
109
+ readMessageThumbnailContainer ,
110
110
messageContainer,
111
111
title,
112
112
body,
@@ -115,7 +115,7 @@ function defaultMessageListLayout(
115
115
} = resolvedStyles
116
116
117
117
unreadIndicator = ( ! isPortrait ) ? { ...unreadIndicator , marginLeft : 40 } : unreadIndicator
118
- readMessageIconContainer = ( ! isPortrait ) ? { ...readMessageIconContainer , paddingLeft : 65 } : readMessageIconContainer
118
+ readMessageThumbnailContainer = ( ! isPortrait ) ? { ...readMessageThumbnailContainer , paddingLeft : 65 } : readMessageThumbnailContainer
119
119
messageContainer = ( ! isPortrait ) ? { ...messageContainer , width : '90%' } : messageContainer
120
120
121
121
function messageRowStyle ( rowViewModel : InboxRowViewModel ) {
@@ -127,8 +127,8 @@ function defaultMessageListLayout(
127
127
< View style = { unreadIndicatorContainer as ViewStyle } >
128
128
{ rowViewModel . read ? null : < View style = { unreadIndicator } /> }
129
129
</ View >
130
- < View style = { ( rowViewModel . read ? readMessageIconContainer : unreadMessageIconContainer ) as ViewStyle } >
131
- { iconURL ? < Image style = { { height : 80 , width : 80 } } source = { { uri : iconURL } } /> : null }
130
+ < View style = { ( rowViewModel . read ? readMessageThumbnailContainer : unreadMessageThumbnailContainer ) as ViewStyle } >
131
+ { thumbnailURL ? < Image style = { { height : 80 , width : 80 } } source = { { uri : thumbnailURL } } /> : null }
132
132
</ View >
133
133
< View style = { messageContainer as ViewStyle } >
134
134
< Text numberOfLines = { 1 } ellipsizeMode = 'tail' style = { title } > { messageTitle as TextStyle } </ Text >
0 commit comments