import React from 'react';
import {StyleSheet} from 'react-native';
import PlayyText from '../PlayyText/PlayyText';
import {SwipeableListItemSubTitleProps} from './types';
import {useTheme, ColorsScheme} from '../../theme/ThemeContext';
/**
* SubTitle component for SwipeableListItem.Content
*
* @example
* ```tsx
*
* John Doe
*
* Hey, how are you doing today?
*
*
* ```
*/
export const SwipeableListItemSubTitle: React.FC = ({
children,
numberOfLines = 2,
style,
}) => {
const {colors} = useTheme();
const styles = themedStyle(colors);
return (
{children}
);
};
const themedStyle = (colors: ColorsScheme) =>
StyleSheet.create({
subtitle: {
flex: 1,
},
});