
Learn how to handle four file changes from linking for Google Maps API in a React Native app, detailing iOS and Android updates and manual steps when auto-linking fails.
Comment out the Google Maps provider in the maps test component, use Apple Maps as the provider, and run the app again on iOS and Android to resolve the error.
Refactor the React Native Google Maps UI by consolidating styles, restructuring the prediction object with structured formatting, and adding a one-second debounce to API calls, while disabling auto-correct and auto-capitalization.
Lift location state from the map screen to a parent component, obtain user position with permission, and pass latitude and longitude to child components via props.
Use Google Maps API in React Native to render a polyline from destination coordinates, conditionally display it as a child component, and auto-zoom on destination selection.
Learn how to refactor your map screen by forwarding refs to a child component, integrating map view and poly line from react-native-maps, and simplifying components without overusing refs.
In this course you will learn:
How to build a Maps app for both iOS and Android
How to install react-native-maps, and pitfalls you can avoid when doing so!
How to ask for permission to get users location
How to show the user location
How to follow the user location on the map
How to use Google Maps API's easily
How to use Google Places Autocomplete API, to autocomplete as the user types
How to use Google Directions API, to get directions from the user location to a location
How to display this route inside our React Native app
How to zoom out map to display our route
I'm will show the quickest and easiest path to get a map app up and running for both iOS and Android, saving you lots of time that I've used when I couldn't find help, or had to fumble around various bugs!