/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions, react/prop-types */ import React from 'react'; import { storiesOf } from '@storybook/react-native'; import ServerItemComponent from '../../app/presentation/ServerItem'; import { ThemeContext } from '../../app/theme'; const stories = storiesOf('ServerItem', module); const themes = { light: 'light', dark: 'dark', black: 'black' }; const item = { name: 'Rocket.Chat', id: 'https://open.rocket.chat/', iconURL: 'https://open.rocket.chat/images/logo/android-chrome-512x512.png' }; const ServerItem = ({ theme = themes.light, ...props }) => ( ); stories.add('content', () => ( <> )); stories.add('touchable', () => ( <> alert('Long Press')} onPress={() => alert('Press')} /> alert('Press')} /> alert('Long Press')} /> )); stories.add('themes', () => ( <> ));