Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Maps library

I have problems with installing react native maps library, when I type:

npm install react-native-maps --save

error shows:

react-native-maps error enter image description here

dependencies:

"react": "15.3.2",  
"react-native": "0.36.0"
like image 797
svbeg Avatar asked Nov 09 '16 13:11

svbeg


People also ask

Is react native map free?

The Google Maps JavaScript API is not used in react native maps. That means at the moment the usage is unlimited and free of charge as per Google Maps Platform price sheet.

What is react native maps?

react-native-maps provides a Map component that uses Apple Maps or Google Maps on iOS and Google Maps on Android. Expo uses react-native-maps at react-community/react-native-maps. No setup required for use within the Expo Go app.

What is latitudeDelta and longitudeDelta?

latitudeDelta. The amount of north-to-south distance (measured in degrees) to use for the span. Unlike longitudinal distances, which vary based on the latitude, one degree of latitude is approximately 111 kilometers (69 miles) at all times. longitudeDelta.


1 Answers

As Rishabh says, you should upgrade to the latest versions of react, react-native and react-native-maps.

Depending on how complex your project is, I often find the easiest way to upgrade is to create a brand new, clean project:

react-native init MyProjectName

and then install react-native maps (and another other dependencies)

npm install --save react-native-maps
react-native link

and then copy across all your Javascript source code into the new project.

like image 105
Simon Ordish Avatar answered Sep 26 '22 03:09

Simon Ordish