/* 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 { 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('Touch', () => ( alert('on press')} onLongPress={() => alert('on long press')} /> )); stories.add('User', () => ( <> )); stories.add('Type', () => ( <> )); stories.add('User status', () => ( <> )); stories.add('Alerts', () => ( <> )); stories.add('Tag', () => ( <> )); stories.add('Last Message', () => ( <> ));