So I am trying to set my initial center coordinates for mapbox so they are not 0,0. On the api it says mapbox expects a prop of
initialCenterCoordinate object Optional Initial latitude/longitude the map will load at. { latitude:0, longitude: 0 }
So I am doing
<Mapbox initialCenterCoordinate={latitude: 40.444328, longitude: -79.953155} .... other props/>
This is giving me an error on that line saying unexpected token, expecting }.
Whenever I do something like
<Mapbox initialCenterCoordinate={{latitude: 40.444328, longitude: -79.953155}} .... other props/>
It still sets my initial spot to 0,0. Anyone have any ideas?
EDIT:link to git hub page- https://github.com/mapbox/react-native-mapbox-gl