O'Reilly logo

Getting Started with React Native by Tom Bray, Ethan Holmes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we explored more of React Native's built-in components and modules to capture the device-specific location data. The Geolocation API provides us the mechanism which hooks into the existing component life cycle to track user location. By incorporating this into our existing saved data, we can use the longitude and latitude values to display a map of where all of our notes were taken.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required