import React from 'react'; import { ScrollView, StyleSheet, View } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import Markdown, { MarkdownPreview } from '.'; import { themes } from '../../lib/constants'; import { TGetCustomEmoji, ICustomEmoji } from '../../definitions/IEmoji'; const theme = 'light'; const styles = StyleSheet.create({ container: { marginHorizontal: 15, backgroundColor: themes[theme].backgroundColor, marginVertical: 50 } }); 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: TGetCustomEmoji = content => { const customEmoji = { marioparty: { name: content, extension: 'gif' }, react_rocket: { name: content, extension: 'png' }, nyan_rocket: { name: content, extension: 'png' } }[content] as ICustomEmoji; return customEmoji; }; export default { title: 'Markdown', decorators: [ (Story: any) => ( ) ] }; export const Text = () => ( ); export const Preview = () => ( ); export const Mentions = () => ( ); export const Hashtag = () => ( ); export const Emoji = () => ( ); export const BlockQuote = () => ( This is block quote this is a normal line`} theme={theme} /> ); export const Links = () => ( ); export const Image = () => ( ); export const Headers = () => ( ); export const Code = () => ( ); export const Lists = () => ( ); export const Table = () => ( );