import React from 'react'; import { ScrollView } from 'react-native'; import * as List from '../../containers/List'; import { themes } from '../../lib/constants'; import { ThemeContext, TSupportedThemes } from '../../theme'; import Item, { IItem } from './Item'; const author = { _id: 'userid', username: 'rocket.cat', name: 'Rocket Cat' }; const date = new Date(2020, 10, 10, 10); const longText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'; const defaultItem = { msg: 'Message content', tcount: 1, replies: [1], ts: date, tlm: date, u: author, attachments: [] }; export default { title: 'ThreadMessagesView/Item', decorators: [ (Story: any) => ( ) ] }; const BaseItem = ({ item, useRealName = false, badgeColor }: { item?: any; useRealName?: IItem['useRealName']; badgeColor?: IItem['badgeColor']; }) => ( alert('toggleFollowThread')} onPress={() => alert('pressed')} /> ); export const Content = () => ( <> ); export const Badge = () => ( <> ); const ThemeStory = ({ theme }: { theme: TSupportedThemes }) => ( ); export const Themes = () => ( <> );