@@ -60,6 +60,8 @@ import { MessageBox } from 'react-chat-elements/native';
606012 . [ Avatar] ( #avatar-component )
616113 . [ LocationMessage] ( #locationmessage-component )
626214 . [ SpotifyMessage] ( #spotifymessage-component )
63+ 15 . [ MeetingItem] ( #meetingitem-component )
64+ 16 . [ MeetingList] ( #meetinglist-component )
6365
6466## ChatItem Component
6567
@@ -555,3 +557,70 @@ import { SpotifyMessage } from 'react-chat-elements'
555557| data | {} | object | message data |
556558| width | 300 | int | spotify embed width |
557559| height | 380 | int | spotify embed height |
560+
561+
562+ ## MeetingItem Component
563+
564+ ![ meeting-photo] ( https://user-images.githubusercontent.com/15075759/90499887-cd878500-e152-11ea-9e13-80118bf2c94f.png )
565+
566+ ``` javascript
567+ import { MeetingItem } from ' react-chat-elements'
568+
569+ < MeetingItem
570+ subject= {' New Release!!!' }
571+ avatars= {[
572+ src: ' https://facebook.github.io/react/img/logo.svg'
573+ ]}
574+ onMeetingClick= {console .log }
575+ onShareClick= {console .log }/ >
576+ ```
577+ #### MeetingItem props
578+
579+ | prop | default | type | description |
580+ | ---- | ---- | ---- | ---- |
581+ | subject | none | string | MeetingItem subject |
582+ | subjectLimit | 60 | int | MeetingItem subject text limit |
583+ | date | none | date | MeetingItem date |
584+ | dateString | none | string | MeetingItem represents dateString or timeagojs(now, date) |
585+ | lazyLoadingImage | none | image path | lazy loading image |
586+ | onClick | none | function | MeetingItem on click |
587+ | onMeetingClick | none | function | MeetingItem on meeting click |
588+ | onShareClick | none | function | MeetingItem on share click |
589+ | avatars | none | date | MeetingItem avatars |
590+ | avatarLimit | 5 | date | MeetingItem avatars limit |
591+
592+
593+ ## MeetingList Component
594+
595+ ![ meetingList-photo] ( https://user-images.githubusercontent.com/15075759/90499889-ce201b80-e152-11ea-9cdb-7c3ef0e04b4e.png )
596+
597+ ``` javascript
598+ import { MeetingList } from ' react-chat-elements'
599+
600+ < MeetingList
601+ className= ' meeting-list'
602+ dataSource= {[
603+ {
604+ id: ' 1' ,
605+ subject: ' New Release' ,
606+ date: new Date (),
607+ avatars: [{
608+ src: ' https://facebook.github.io/react/img/logo.svg' ,
609+ }]
610+ },
611+ .
612+ .
613+ .
614+ ]} / >
615+ ```
616+
617+ #### MeetingList props
618+
619+ | prop | default | type | description |
620+ | ---- | ---- | ---- | ---- |
621+ | className | none | string | optional meeting list className |
622+ | dataSource | [ ] | array | meeting list array |
623+ | onClick | none | function | meeting list item on click (meeting(object) is returned) |
624+ | onContextMenu | none | function | meeting list item on context menu (meeting(object) is returned) |
625+ | onAvatarError | none | function | meeting list item on error avatar img |
626+ | lazyLoadingImage | none | image path | lazy loading image |
0 commit comments