I have problems with installing react native maps library, when I type:
npm install react-native-maps --save
error shows:
react-native-maps error
dependencies:
"react": "15.3.2",
"react-native": "0.36.0"
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With