Update ListItem.tsx

This commit is contained in:
Marcos Rodriguez Velez 2023-12-19 11:33:33 -04:00
parent 6de5f49179
commit 5097c88e16
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -5,7 +5,7 @@ import { useTheme } from './themes';
// Update the type for the props
interface ListItemProps {
rightIcon?: object;
rightIcon?: any;
leftAvatar?: React.Component;
containerStyle?: object;
Component?: typeof React.Component | typeof PressableWrapper;
@ -17,7 +17,7 @@ interface ListItemProps {
hideChevron?: boolean;
disabled?: boolean;
switch?: object; // Define more specific type if needed
leftIcon?: object; // Define more specific type if needed
leftIcon?: any; // Define more specific type if needed
title: string;
subtitle?: string;
subtitleNumberOfLines?: number;