2018-04-09 23:43:50 +00:00
|
|
|
### With a quotation, text-only replies
|
|
|
|
|
|
|
|
#### Plain text
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
onClick: () => console.log('onClick'),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
onClick: () => console.log('onClick'),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Name variations
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
authorName: 'Mr. Fire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Profile name"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName: 'OnFire',
|
|
|
|
authorName: 'Mr. Fire',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-20 22:17:08 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With emoji
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About 🔥six🔥"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many 🔥ferrets🔥 do you have?',
|
|
|
|
authorName: 'Mr. 🔥Fire🔥',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About 🔥six🔥"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many 🔥ferrets🔥 do you have?',
|
|
|
|
authorName: 'Mr. 🔥Fire🔥',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 19:21:37 +00:00
|
|
|
#### Replies to you or yourself
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
isFromMe: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
isFromMe: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 19:21:37 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 06:55:32 +00:00
|
|
|
#### In a group conversation
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios} type="group">
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
conversationType="group"
|
|
|
|
authorName="Mr. 🔥Fire🔥"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
authorAvatarPath={util.gifObjectUrl}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
conversationType="group"
|
|
|
|
authorName="Mr. 🔥Fire🔥"
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
authorAvatarPath={util.gifObjectUrl}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
2018-08-15 19:31:29 +00:00
|
|
|
#### Referenced message not found
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
isFromMe: true,
|
|
|
|
referencedMessageNotFound: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
isFromMe: true,
|
|
|
|
referencedMessageNotFound: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
conversationType="group"
|
|
|
|
authorName="Mr. 🔥Fire🔥"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
referencedMessageNotFound: true,
|
|
|
|
}}
|
|
|
|
authorAvatarPath={util.gifObjectUrl}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
conversationType="group"
|
|
|
|
authorName="Mr. 🔥Fire🔥"
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
referencedMessageNotFound: true,
|
|
|
|
}}
|
|
|
|
authorAvatarPath={util.gifObjectUrl}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
#### Long names and context
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios} type="group">
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'A really long link https://app.zeplin.io/project/5b2136b8e490ad6a54399857/screen/5b3bd068e03b763a0ee4c3e9',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName:
|
|
|
|
'Really really really really really really really really really long!',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'A really long link https://app.zeplin.io/project/5b2136b8e490ad6a54399857/screen/5b3bd068e03b763a0ee4c3e9',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
authorProfileName:
|
|
|
|
'Really really really really really really really really really long!',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### A lot of text in quotation
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 19:02:35 +00:00
|
|
|
#### A lot of text in quotation, with icon
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 19:02:35 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### A lot of text in quotation, with image
|
2018-04-09 23:43:50 +00:00
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-04-10 01:31:52 +00:00
|
|
|
contentType: 'image/gif',
|
2018-06-27 20:53:49 +00:00
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
2018-04-10 01:31:52 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Woo, otters!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text:
|
|
|
|
'I have lots of things to say. First, I enjoy otters. Second best are cats. ' +
|
|
|
|
'After that, probably dogs. And then, you know, reptiles of all types. ' +
|
|
|
|
'Then birds. They are dinosaurs, after all. Then cephalapods, because they are ' +
|
|
|
|
'really smart.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
2018-04-12 19:02:35 +00:00
|
|
|
#### Image with caption
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Totally, it's a pretty unintuitive concept."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'I am pretty confused about Pi.',
|
|
|
|
attachment: {
|
2018-04-12 19:02:35 +00:00
|
|
|
contentType: 'image/gif',
|
2018-06-27 20:53:49 +00:00
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
2018-04-12 19:02:35 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Totally, it's a pretty unintuitive concept."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'I am pretty confused about Pi.',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 19:02:35 +00:00
|
|
|
```
|
|
|
|
|
2018-04-09 23:43:50 +00:00
|
|
|
#### Image
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-04-10 01:31:52 +00:00
|
|
|
contentType: 'image/gif',
|
2018-06-27 20:53:49 +00:00
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
2018-04-10 01:31:52 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Image with no thumbnail
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Yeah, pi. Tough to wrap your head around."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Video with caption
|
2018-04-05 16:19:00 +00:00
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Sweet the way the video sneaks up on you!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this video I found!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Sweet the way the video sneaks up on you!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this video I found!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Video
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-12 06:55:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Video with no thumbnail
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Awesome!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'video/mp4',
|
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
thumbnail: {
|
|
|
|
contentType: 'image/gif',
|
|
|
|
},
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Audio with caption
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this beautiful song!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'Check out this beautiful song!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Audio
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I really like it!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Voice message
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Thanks for letting me know!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
// Note: generated from 'flags' attribute, proposed afternoon of
|
|
|
|
// 4/6 in Quoted Replies group
|
|
|
|
isVoiceMessage: true,
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Thanks for letting me know!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'audio/mp3',
|
|
|
|
fileName: 'agnus_dei.mp4',
|
|
|
|
isVoiceMessage: true,
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Other file type with caption
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName:
|
|
|
|
'really_really_really_really_really_really_really_really_really_long.txt',
|
|
|
|
},
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="I can't read latin."
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'This is my manifesto. Tell me what you think!',
|
|
|
|
attachment: {
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName:
|
|
|
|
'really_really_really_really_really_really_really_really_really_long.txt',
|
|
|
|
},
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-09 23:43:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Other file type
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
text="Sorry, I can't read latin!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
authorColor="green"
|
|
|
|
text="Sorry, I can't read latin!"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
attachment: {
|
2018-06-27 20:53:49 +00:00
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-05 16:19:00 +00:00
|
|
|
```
|
2018-04-16 20:02:51 +00:00
|
|
|
|
|
|
|
### With a quotation, including attachment
|
|
|
|
|
|
|
|
#### Quote, image attachment, and caption
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
text="About six"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Quote, image attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.gifObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
2018-04-20 23:02:33 +00:00
|
|
|
#### Quote, portrait image attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
url: util.portraitYellowObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
url: util.portraitYellowObjectUrl,
|
|
|
|
fileName: 'pi.gif',
|
|
|
|
contentType: 'image/gif',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-20 23:02:33 +00:00
|
|
|
```
|
|
|
|
|
2018-04-16 20:02:51 +00:00
|
|
|
#### Quote, video attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
2018-08-14 00:06:50 +00:00
|
|
|
screenshot: {
|
|
|
|
url: util.pngObjectUrl,
|
|
|
|
contentType: 'image/png',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
contentType: 'video/mp4',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
2018-08-14 00:06:50 +00:00
|
|
|
screenshot: {
|
|
|
|
url: util.pngObjectUrl,
|
|
|
|
contentType: 'image/png',
|
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
fileName: 'freezing_bubble.mp4',
|
|
|
|
contentType: 'video/mp4',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Quote, audio attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
data: util.mp3ObjectUrl,
|
|
|
|
fileName: 'agnus_dei.mp3',
|
|
|
|
contentType: 'audio/mp3',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
data: util.mp3ObjectUrl,
|
|
|
|
fileName: 'agnus_dei.mp3',
|
|
|
|
contentType: 'audio/mp3',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-16 20:02:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Quote, file attachment
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-07-09 21:29:13 +00:00
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="incoming"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
authorColor="green"
|
|
|
|
attachment={{
|
|
|
|
data: util.txtObjectUrl,
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileSize: '3.05 KB',
|
|
|
|
}}
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Message
|
|
|
|
direction="outgoing"
|
|
|
|
timestamp={Date.now()}
|
|
|
|
status="sending"
|
|
|
|
attachment={{
|
|
|
|
data: util.txtObjectUrl,
|
|
|
|
fileName: 'lorum_ipsum.txt',
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileSize: '3.05 KB',
|
|
|
|
}}
|
|
|
|
authorColor="green"
|
|
|
|
i18n={util.i18n}
|
|
|
|
quote={{
|
|
|
|
authorColor: 'red',
|
|
|
|
text: 'How many ferrets do you have?',
|
|
|
|
authorPhoneNumber: '(202) 555-0011',
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</li>
|
2018-06-27 20:53:49 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-24 02:16:00 +00:00
|
|
|
```
|
|
|
|
|
2018-04-18 20:06:33 +00:00
|
|
|
### In bottom bar
|
|
|
|
|
|
|
|
#### Plain text
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-04-18 20:06:33 +00:00
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-08-14 00:06:50 +00:00
|
|
|
i18n={util.i18n}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2018-08-14 00:06:50 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-18 20:06:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With an icon
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-04-18 20:06:33 +00:00
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/jpeg',
|
|
|
|
fileName: 'llama.jpg',
|
|
|
|
}}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2018-08-14 00:06:50 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-18 20:06:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With an image
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-04-18 20:06:33 +00:00
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'llama.gif',
|
|
|
|
thumbnail: {
|
|
|
|
objectUrl: util.gifObjectUrl,
|
2018-04-18 20:06:33 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
}}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2018-08-14 00:06:50 +00:00
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With attachment and no text
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
authorColor="blue"
|
|
|
|
authorPhoneNumber="(202) 555-1000"
|
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'llama.gif',
|
|
|
|
thumbnail: {
|
|
|
|
objectUrl: util.gifObjectUrl,
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With generic attachment
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
|
|
|
authorPhoneNumber="(202) 555-1000"
|
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'text/plain',
|
|
|
|
fileName: 'manifesto.text',
|
|
|
|
}}
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</util.ConversationContext>
|
2018-04-18 20:06:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With a close button
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-04-18 20:06:33 +00:00
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-08-14 00:06:50 +00:00
|
|
|
i18n={util.i18n}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2018-08-14 00:06:50 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-18 20:06:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With a close button and icon
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-04-18 20:06:33 +00:00
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-08-14 00:06:50 +00:00
|
|
|
i18n={util.i18n}
|
2018-07-09 21:29:13 +00:00
|
|
|
attachment={{
|
|
|
|
contentType: 'image/jpeg',
|
|
|
|
fileName: 'llama.jpg',
|
|
|
|
}}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2018-08-14 00:06:50 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-18 20:06:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### With a close button and image
|
|
|
|
|
|
|
|
```jsx
|
2018-08-14 00:06:50 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-04-18 20:06:33 +00:00
|
|
|
<div className="bottom-bar">
|
|
|
|
<Quote
|
|
|
|
text="How many ferrets do you have?"
|
|
|
|
authorColor="blue"
|
2018-07-09 21:29:13 +00:00
|
|
|
authorPhoneNumber="(202) 555-1000"
|
2018-04-18 20:06:33 +00:00
|
|
|
authorProfileName="Mr. Blue"
|
|
|
|
id={Date.now() - 1000}
|
2018-07-09 21:29:13 +00:00
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
i18n={util.i18n}
|
|
|
|
attachment={{
|
|
|
|
contentType: 'image/gif',
|
|
|
|
fileName: 'llama.gif',
|
|
|
|
thumbnail: {
|
|
|
|
objectUrl: util.gifObjectUrl,
|
2018-04-18 20:06:33 +00:00
|
|
|
},
|
2018-07-09 21:29:13 +00:00
|
|
|
}}
|
2018-04-18 20:06:33 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2018-08-14 00:06:50 +00:00
|
|
|
</util.ConversationContext>
|
2018-04-18 20:06:33 +00:00
|
|
|
```
|