How it works...
By making use of the MapView component provided by Expo, the implementation of a map in your React Native app is now a much simpler and straightforward process than it once was.
In step 3, we made use of the Permissions helper library. Permissions has a method called askAsync, which takes one parameter defining what type of permissions your app would like to request from the user. Permissions also has constants for each type of permission you can request from the user. These permission types include LOCATION, NOTIFICATIONS (which we'll use later in this chapter), CAMERA, AUDIO_RECORDING, CONTACTS, CAMERA_ROLL, and CALENDAR. Since we need the location in this recipe, we passed in the constant Permissions.LOCATION. Once the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access