Rendering the Map
The MapView component from react-native-maps is the main tool you'll use to render maps in your React Native applications. It offers a wide range of tools for rendering maps, markers, polygons, heatmaps, and suchlike.
Let's now implement a basic MapView component to see what you get out of the box:
import React from "react";
import { View, StatusBar } from "react-native";
import MapView from "react-native-maps";
import styles from "./styles";
StatusBar.setBarStyle("dark-content");
export default () => (
<View style={styles.container}>
<MapView style={styles.mapView} showsUserLocation
followUserLocation />
</View>
);
The two Boolean properties that you've passed to MapView do a lot of work for you. The showsUserLocation property will activate the marker on the map, which denotes the physical...