2018-09-27 00:23:17 +00:00
|
|
|
### With avatar
|
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2019-11-19 23:03:00 +00:00
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="blue"
|
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={52}
|
|
|
|
color="blue"
|
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2018-10-18 22:41:05 +00:00
|
|
|
<Avatar
|
|
|
|
size={28}
|
2019-11-19 23:03:00 +00:00
|
|
|
color="blue"
|
2018-10-18 22:41:05 +00:00
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2019-11-19 23:03:00 +00:00
|
|
|
<hr />
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="blue"
|
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={52}
|
|
|
|
color="blue"
|
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2018-10-18 22:41:05 +00:00
|
|
|
<Avatar
|
|
|
|
size={28}
|
2019-11-19 23:03:00 +00:00
|
|
|
color="blue"
|
2018-10-18 22:41:05 +00:00
|
|
|
avatarPath={util.gifObjectUrl}
|
2019-11-19 23:03:00 +00:00
|
|
|
conversationType="direct"
|
|
|
|
onClick={() => console.log('onClick')}
|
2018-10-18 22:41:05 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### With only name
|
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="blue"
|
|
|
|
name="John"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="green"
|
|
|
|
name="John Smith"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2019-11-19 23:03:00 +00:00
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Just phone number
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2018-10-18 22:41:05 +00:00
|
|
|
<Avatar
|
|
|
|
size={28}
|
2019-11-19 23:03:00 +00:00
|
|
|
color="pink"
|
|
|
|
phoneNumber="(555) 353-3433"
|
|
|
|
conversationType="direct"
|
2018-10-18 22:41:05 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
2019-11-19 23:03:00 +00:00
|
|
|
### Letters
|
2018-09-27 00:23:17 +00:00
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2019-11-19 23:03:00 +00:00
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="blue"
|
|
|
|
name="One"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={52}
|
|
|
|
color="blue"
|
|
|
|
name="One"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2018-10-18 22:41:05 +00:00
|
|
|
<Avatar
|
|
|
|
size={28}
|
2019-11-19 23:03:00 +00:00
|
|
|
color="blue"
|
|
|
|
name="One"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<hr />
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="blue"
|
|
|
|
name="One"
|
|
|
|
conversationType="direct"
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={52}
|
|
|
|
color="blue"
|
|
|
|
name="One"
|
|
|
|
conversationType="direct"
|
|
|
|
onClick={() => console.log('onClick')}
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="blue"
|
|
|
|
name="One"
|
2018-10-18 22:41:05 +00:00
|
|
|
conversationType="direct"
|
2019-11-19 23:03:00 +00:00
|
|
|
onClick={() => console.log('onClick')}
|
2018-10-18 22:41:05 +00:00
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
2019-01-31 01:45:58 +00:00
|
|
|
### Note to self
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="pink"
|
|
|
|
noteToSelf={true}
|
|
|
|
phoneNumber="(555) 353-3433"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
2019-10-04 18:06:17 +00:00
|
|
|
size={52}
|
2019-01-31 01:45:58 +00:00
|
|
|
color="pink"
|
|
|
|
noteToSelf={true}
|
|
|
|
phoneNumber="(555) 353-3433"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="pink"
|
|
|
|
noteToSelf={true}
|
|
|
|
phoneNumber="(555) 353-3433"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
2019-11-11 18:03:15 +00:00
|
|
|
### Group Icon
|
2018-09-27 00:23:17 +00:00
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
2019-11-11 18:03:15 +00:00
|
|
|
<Avatar size={80} color="blue" conversationType="group" i18n={util.i18n} />
|
|
|
|
<Avatar size={52} color="blue" conversationType="group" i18n={util.i18n} />
|
|
|
|
<Avatar size={28} color="blue" conversationType="group" i18n={util.i18n} />
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Contact Icon
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar size={80} color="blue" conversationType="direct" i18n={util.i18n} />
|
|
|
|
<Avatar size={52} color="blue" conversationType="direct" i18n={util.i18n} />
|
|
|
|
<Avatar size={28} color="blue" conversationType="direct" i18n={util.i18n} />
|
|
|
|
</util.ConversationContext>
|
|
|
|
```
|
|
|
|
|
|
|
|
### All colors, 28px
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="signal-blue"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2018-10-18 22:41:05 +00:00
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="signal-blue"
|
|
|
|
name="Group"
|
|
|
|
conversationType="group"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="red"
|
|
|
|
name="Red"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="deep_orange"
|
|
|
|
name="Deep Orange"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="brown"
|
|
|
|
name="Broen"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="pink"
|
|
|
|
name="Pink"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="purple"
|
|
|
|
name="Purple"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="indigo"
|
|
|
|
name="Indigo"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="blue"
|
|
|
|
name="Blue"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="teal"
|
|
|
|
name="Teal"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="green"
|
|
|
|
name="Green"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="light_green"
|
|
|
|
name="Light Green"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="blue_grey"
|
|
|
|
name="Blue Grey"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
### 52px
|
2018-09-27 00:23:17 +00:00
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
2019-10-04 18:06:17 +00:00
|
|
|
size={52}
|
2018-10-18 22:41:05 +00:00
|
|
|
color="teal"
|
|
|
|
name="John Smith"
|
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
2019-10-04 18:06:17 +00:00
|
|
|
size={52}
|
2018-10-18 22:41:05 +00:00
|
|
|
color="teal"
|
|
|
|
name="John"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
2019-10-04 18:06:17 +00:00
|
|
|
size={52}
|
2018-10-18 22:41:05 +00:00
|
|
|
color="teal"
|
|
|
|
name="John Smith"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
2019-10-04 18:06:17 +00:00
|
|
|
<Avatar size={52} color="teal" conversationType="direct" i18n={util.i18n} />
|
2018-10-18 22:41:05 +00:00
|
|
|
<Avatar
|
2019-10-04 18:06:17 +00:00
|
|
|
size={52}
|
2018-10-18 22:41:05 +00:00
|
|
|
color="teal"
|
|
|
|
name="Pupplies"
|
|
|
|
conversationType="group"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### 80px
|
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="teal"
|
|
|
|
name="John Smith"
|
|
|
|
avatarPath={util.gifObjectUrl}
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="teal"
|
|
|
|
name="John"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="teal"
|
|
|
|
name="John Smith"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
<Avatar size={80} color="teal" conversationType="direct" i18n={util.i18n} />
|
|
|
|
<Avatar
|
|
|
|
size={80}
|
|
|
|
color="teal"
|
|
|
|
name="Pupplies"
|
|
|
|
conversationType="group"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Broken color
|
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="fake"
|
|
|
|
name="F"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Broken image
|
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
color="pink"
|
|
|
|
name="John Smith"
|
|
|
|
avatarPath="nonexistent"
|
|
|
|
conversationType="direct"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Broken image for group
|
|
|
|
|
|
|
|
```jsx
|
2018-10-18 22:41:05 +00:00
|
|
|
<util.ConversationContext theme={util.theme} ios={util.ios}>
|
|
|
|
<Avatar
|
|
|
|
size={28}
|
|
|
|
avatarPath="nonexistent"
|
|
|
|
color="pink"
|
|
|
|
name="Puppies"
|
|
|
|
avatarPath="nonexistent"
|
|
|
|
conversationType="group"
|
|
|
|
i18n={util.i18n}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>
|
2018-09-27 00:23:17 +00:00
|
|
|
```
|