/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { ScrollView, StyleSheet, View } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import Markdown from '../../app/containers/markdown'; import { themes } from '../../app/constants/colors'; const theme = 'light'; const styles = StyleSheet.create({ container: { marginHorizontal: 15, backgroundColor: themes[theme].backgroundColor, marginVertical: 50 }, separator: { marginHorizontal: 10, marginVertical: 10 } }); const baseUrl = 'https://open.rocket.chat'; const longText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'; const lineBreakText = `a b c d e`; const sequentialEmptySpacesText = 'a b c'; const getCustomEmoji = content => { const customEmoji = { marioparty: { name: content, extension: 'gif' }, react_rocket: { name: content, extension: 'png' }, nyan_rocket: { name: content, extension: 'png' } }[content]; return customEmoji; }; const stories = storiesOf('Markdown', module); stories.add('Text', () => ( )); stories.add('Edited', () => ( )); stories.add('Preview', () => ( )); stories.add('Mentions', () => ( )); stories.add('Hashtag', () => ( )); stories.add('Emoji', () => ( )); stories.add('Block quote', () => ( This is block quote this is a normal line`} theme={theme} /> )); stories.add('Links', () => ( )); stories.add('Image', () => ( )); stories.add('Headers', () => ( )); stories.add('Code', () => ( )); stories.add('Lists', () => ( )); stories.add('Table', () => ( ));