How To Integrate Google Maps into React Native via Expo 2021

$ npm install -g expo-cli$ expo init ProjectName
$ cd ProjectName$ expo start
A successful start
$ expo install react-native-maps
 import MapView from ‘react-native-maps’;
 <MapView style={{height: ’50%’, width: ‘100%’}} /> 
This is how your App.js file should look
Good but not Google
“ios”: {“supportsTablet”: true,“bundleIdentifier”: “com.example.ProjectName”,“config”: {“googleMapsApiKey”: “YOUR_API_KEY”}},
provider={PROVIDER_GOOGLE}
showsUserLocation={true}
Our Map is Working!
Your final App.js file should looks like this

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store