I am extracting {item.dosage} from a JSON which gives me the following string
"300gr short pasta, 2 spring onions, 50gr parmesan cheese"
and I'd like to show it each ingredient separated by comma in a separate text line like this
300gr short pasta
2 spring onions
50gr parmesan cheese
I was trying to do the following within my JSX
{item.dosage.map((step, i) => (
<Text>
{i > 0 && ", "}
{step}
</Text>
))}
and I'm getting an error about "undefined is not a function...".