| 6 | import { useTheme } from './themes'; |
| 7 | |
| 8 | interface ListItemProps { |
| 9 | leftAvatar?: React.JSX.Element; |
| 10 | containerStyle?: StyleProp<ViewStyle>; |
| 11 | noFeedback?: boolean; |
| 12 | bottomDivider?: boolean; |
| 13 | testID?: string; |
| 14 | switchTestID?: string; |
| 15 | onPress?: () => void; |
| 16 | disabled?: boolean; |
| 17 | switch?: SwitchProps; |
| 18 | title: string; |
| 19 | titleStyle?: StyleProp<TextStyle>; |
| 20 | subtitle?: string | React.ReactNode; |
| 21 | subtitleNumberOfLines?: number; |
| 22 | rightTitle?: string; |
| 23 | rightTitleStyle?: StyleProp<TextStyle>; |
| 24 | rightSubtitle?: string | React.ReactNode; |
| 25 | rightSubtitleStyle?: StyleProp<TextStyle>; |
| 26 | chevron?: boolean; |
| 27 | checkmark?: boolean; |
| 28 | isLoading?: boolean; |
| 29 | } |
| 30 | |
| 31 | const ListItem: React.FC<ListItemProps> = React.memo( |
| 32 | ({ |
nothing calls this directly
no outgoing calls
no test coverage detected