I want to iterate over nested object and rendering out for each item an text element in react native.
const translationToWeekDays = {
fr_FR: {
Monday: lundi,
Tuesday: mardi,
Wednesday: mercredi,
Thursday: jeudi,
Friday: vendredi,
},
};
This is the object, and this is my current code
<>
{Object.values(translationToWeekDays).forEach((week) => {
Object.values(week).forEach((day) => (
<Row>
<Text>
{day}
</Text>
</Row>
));
})}
</>
any directions as to where i am going wrong? :(