Skip to content

Commit ce4bb3c

Browse files
author
Spike Brehm
authored
Merge pull request react-native-maps#589 from fdnhkj/master
fix react-native-maps#453
2 parents ed41693 + 00bd213 commit ce4bb3c

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

android/src/main/java/com/airbnb/android/react/maps/AirMapManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ protected AirMapView createViewInstance(ThemedReactContext context) {
6262
reactContext = context;
6363

6464
try {
65-
MapsInitializer.initialize(new AirMapModule(this.appContext).getActivity());
65+
MapsInitializer.initialize(this.appContext);
6666
} catch (RuntimeException e) {
6767
e.printStackTrace();
6868
emitMapError("Map initialize error", "map_init_error");
6969
}
7070

71-
return new AirMapView(context, this.appContext, this, this.googleMapOptions);
71+
return new AirMapView(context, this.appContext.getCurrentActivity(), this, this.googleMapOptions);
7272
}
7373

7474
@Override

android/src/main/java/com/airbnb/android/react/maps/AirMapModule.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)