This error comes out when I load the page of a react project and I have already fixed it several times but it is still there I don’t know what is happening: This is the part where the “problem” is
const Tabla = ({ title, data }: { title: string; data: string[] }) => {
const headerTextStyle = { ...styles.headerText, ...styles.rowText, fontSize: 16 };
return (
<View>
<Text>{title}:</Text>
<Table>
<Row data={['Nombre']} style={styles.headerRow} textStyle={headerTextStyle} />
{data.map((item: string, index: number) => (
<Row key={index} data={[item]} style={styles.row} textStyle={headerTextStyle} />
))}
</Table>
</View>
);
};
I tried to change the code so that it was taken as an object but it didn’t work