import React from 'react'; import {StyleSheet} from 'react-native'; import PlayyText from '../PlayyText/PlayyText'; import {SwipeableListItemTitleProps} from './types'; import {useTheme, ColorsScheme} from '../../theme/ThemeContext'; /** * Title component for SwipeableListItem.Content * * @example * ```tsx * * * John Doe * * * ``` */ export const SwipeableListItemTitle: React.FC = ({ children, numberOfLines = 1, style, }) => { const {colors} = useTheme(); const styles = themedStyle(colors); return ( {children} ); }; const themedStyle = (colors: ColorsScheme) => StyleSheet.create({ title: { marginBottom: 2, }, });