Skip to content

Commit

Permalink
fix: bump error logging and error handling where this issue occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescodesthings committed May 6, 2021
1 parent 737df91 commit 527855b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/map-view.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class MapViewDelegateImpl extends NSObject implements GMSMapViewDelegate {

public didTapMyLocationButtonForMapView(mapView: GMSMapView): boolean {
const owner = this._owner.get();

if (owner) {
owner.notifyMyLocationTapped();
// Should return false in order to center the map on user position
Expand Down Expand Up @@ -356,7 +356,13 @@ export class MapView extends MapViewBase {
}

get ios(): any {
return this.nativeView;
try {
console.error('MapView.ios was called at', new Error('stack').stack)
return this.nativeView;
} catch (error) {
console.error('Returning nativeView caused error', error);
return null;
}
}

get gMap() {
Expand Down

0 comments on commit 527855b

Please sign in to comment.