Skip to content

Commit bb8359f

Browse files
ddipanfilochristopherdro
authored andcommitted
Update for dependency issues (react-native-maps#1092)
* Update for dependency issues react-native-maps#1067 this is a common issue people are experiencing right now * Distinguish dependencies for React versions
1 parent 03f0d03 commit bb8359f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ react-native link react-native-maps
2626
- Drag this folder `node_modules/react-native-maps/ios/AirGoogleMaps/` into your project, and choose `Create groups` in the popup window.
2727
- In `AppDelegate.m`, add `@import GoogleMaps;` before `@implementation AppDelegate`. In `- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions`, add `[GMSServices provideAPIKey:@"YOUR_GOOGLE_MAP_API_KEY"];`
2828
- In your project's `Build Settings` > `Header Search Paths`, double click the value field. In the popup, add `$(SRCROOT)/../node_modules/react-native-maps/ios/AirMaps` and change `non-recursive` to `recursive`. (Dragging the folder `node_modules/react-native-maps/ios/AirMaps/` into your project introduces duplicate symbols. We should not do it.)
29+
30+
Note: We recommend using a version of React Native >= .40. Newer versions (>= .40) require `package.json` to be set to `"react-native-maps": "^0.13.0"`, while older versions require `"react-native-maps": "^0.12.4"`.
2931

3032
### Option 2: CocoaPods
3133
This is now considered the **old way** because it will only work if you **don't** have

0 commit comments

Comments
 (0)