Here is the API link:
http://api.aladhan.com/v1/timingsByCity?city=Dubai&country=United%20Arab%20Emirates&method=8
<Text>{responseMsg.code}</Text>
<Text>{responseMsg.status}</Text>
The above lines are working. I am able to fetch data from this API like, code, status but I am unable to fetch prayer times from this API. I don't know how to write that line to fetch prayer times from this API.
<Text>{(responseMsg.data || []).map(time => time.timings.Fajr)}</Text>
<Text>{(responseMsg.data || []).map(time => time.timings.Dhuhr)}</Text>
I am getting the following error:
TypeError: undefined is not an object
(evaluating '(responseMsg.data || {}).timings.Fajr')