Video by Efficient Programming · streamed from YouTube. All rights remain with the creator.
Lesson 4: A React Native Ride App with Google Maps
About this lesson
This tutorial from Efficient Programming begins a complete, full-stack ride-hailing app built with React Native for the mobile app and Node.js with MongoDB for the back end. The project is split into two parts, and this first part concentrates on the front end, the app that riders hold in their hands. It opens with a demonstration of the finished app and an explanation of how the project is structured, so that you can see how the screens, components and supporting files fit together before writing code. A substantial set-up section then prepares the development environment and the libraries the app depends on. The tutorial goes on to build the home screen in the style of the real app, with its layout, options and the elements a rider uses to start a trip. Maps come next. You create a Google API key, set up Google Maps in an Expo project so that a native map appears inside the app and give the map a custom style so that it matches the look of a ride-hailing service. Geolocation is then added with Expo, asking for permission and finding the user's current position so that the app can centre the map on the rider. The final section shows ride drivers around the user on the map, recreating one of the most recognisable features of such apps. Throughout, the video explains the reasons for each step as well as the code, and the work continues in the next part of the series. Afterwards, read Chapter 4 of the course book, which measures the distances to nearby drivers by hand.