/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { ScrollView, Dimensions } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import { Provider } from 'react-redux'; // import moment from 'moment'; import { themes } from '../../app/constants/colors'; import RoomItemComponent from '../../app/presentation/RoomItem/RoomItem'; import { longText } from '../utils'; import { store } from './index'; const baseUrl = 'https://open.rocket.chat'; const { width } = Dimensions.get('window'); const _theme = 'light'; const lastMessage = { u: { username: 'diego.mello' }, msg: longText }; const updatedAt = { date: '10:00' }; const RoomItem = props => ( ); const stories = storiesOf('Room Item', module) .addDecorator(story => {story()}) .addDecorator(story => {story()}); stories.add('Basic', () => ( )); stories.add('User', () => ( <> )); stories.add('Type', () => ( <> )); stories.add('User status', () => ( <> )); stories.add('Alerts', () => ( <> )); stories.add('Last Message', () => ( <> ));