Chapter 18. Geolocation and Maps

In this chapter, you'll learn about the geolocation and mapping capabilities of React Native. We'll start with using the geolocation API; then we'll move on to using the MapView component to plot points of interest and regions.

We'll rely on the react-native-maps package to implement maps (https://github.com/airbnb/react-native-maps). The goal of this chapter is to go over what's available in React Native for geolocation and React Native Maps for maps.

Where am I?

The geolocation API that web applications use to figure out where the user is located can also be used by React Native applications because the same API has been polyfilled. Outside of maps, this API is useful for getting precise coordinates from the GPS ...

Get React and React Native now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.