Skip to content

Instantly share code, notes, and snippets.

View mariodev12's full-sized avatar

Mario mariodev12

View GitHub Profile
<application>
<!-- You will only need to add this meta-data tag, but make sure it's a child of application -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR GOOGLE MAPS API KEY HERE"/>
</application>
dependencies {
...
// Paste these line
compile(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
compile 'com.google.android.gms:play-services-base:10.0.1'
compile 'com.google.android.gms:play-services-maps:10.0.1'
}
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "AppDelegate.h"
open googleMapsAirbnb.xcworkspace
open .
react-native link react-native-maps
npm install --save react-native-maps
react-native init googleMapsAirbnb
cd googleMapsAirbnb