vn-verdnaturachat/storybook/stories/Channels/DirectMessage.js

90 lines
2.8 KiB
JavaScript
Raw Normal View History

2017-08-17 19:31:27 +00:00
import React from 'react';
import { ScrollView } from 'react-native';
2017-09-01 19:32:07 +00:00
import RoomItem from '../../../app/presentation/RoomItem';
2017-08-17 19:31:27 +00:00
2017-11-08 20:46:59 +00:00
const date = new Date(2017, 10, 10, 10);
2017-08-17 19:31:27 +00:00
export default (
<ScrollView>
<RoomItem
type='d'
name='rocket.cat'
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={0}
alert
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name='rocket.cat'
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={1}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name='rocket.cat'
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={9}
alert
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={99}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={100}
userMentions={0}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={100000}
userMentions={0}
_updatedAt={date}
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
unread={100000}
userMentions={1}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl='https://demo.rocket.chat'
/>
<RoomItem
type='d'
name='W'
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
unread={-100}
/>
<RoomItem
type='d'
name='WW'
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
unread={-100}
/>
<RoomItem
type='d'
name=''
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
unread={-100}
/>
</ScrollView>
);