How to show empty map when there is no data available?
Closed this issue · 1 comments
Azametzin commented
First, I'm not very familiar with maps in react-native.
It looks silly, but I need the map to be empty at certain times, without Markers. It worked well before with normal maps.
I don't know what I'm missing here. Since data
is required, using undefined
, null
, empty array doesn't work. The following error always occurs:
TypeError: Cannot read property 'latitude' of null.
Couldn't find a solution searching about it.
Please, what I might be missing about that?
Azametzin commented
The problem was in the data I was receiving from third party API. Sorry for opening this useless issue.