/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { StyleSheet } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import Avatar from '../../app/containers/Avatar/Avatar'; import Status from '../../app/containers/Status/Status'; import sharedStyles from '../../app/views/Styles'; const styles = StyleSheet.create({ custom: { padding: 16 } }); const server = 'https://open.rocket.chat'; const _theme = 'light'; const stories = storiesOf('Avatar', module); stories.add('Avatar by text', () => ); stories.add('Avatar by roomId', () => ); stories.add('Avatar by url', () => ( )); stories.add('Avatar by path', () => ); stories.add('With ETag', () => ( )); stories.add('Without ETag', () => ); stories.add('Emoji', () => ( ({ name: 'troll', extension: 'jpg' })} server={server} size={56} /> )); stories.add('Direct', () => ); stories.add('Channel', () => ); stories.add('Touchable', () => console.log('Pressed!')} size={56} />); stories.add('Static', () => ( )); stories.add('Avatar by roomId', () => ); stories.add('Custom borderRadius', () => ); stories.add('Children', () => ( )); stories.add('Wrong server', () => ); stories.add('Custom style', () => );